Skip to content

Commit afd38f3

Browse files
Disposable
1 parent 2e278b0 commit afd38f3

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"Dev.Ide": {
1212
"commandName": "Project",
1313
"launchBrowser": true,
14-
"applicationUrl": "http://localhost:42948",
14+
"applicationUrl": "http://localhost:4766",
1515
"environmentVariables": {
1616
"ASPNETCORE_ENVIRONMENT": "Development"
1717
}

Pseudo/PseudoWorker.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace Dev.Ide.Pseudo
1010
{
11-
public class PseudoWorker
11+
public class PseudoWorker : IDisposable
1212
{
1313
public List<string> outputs = new List<string>();
1414
public List<string> errors = new List<string>();
@@ -18,10 +18,17 @@ public class PseudoWorker
1818
RunCode run;
1919
public PseudoWorker(RunCode _run)
2020
{
21+
AutoSelfDestruct();
2122
run = _run;
2223
Init();
2324
}
2425

26+
public async void AutoSelfDestruct()
27+
{
28+
await Task.Delay(1000 * 60 * 10);
29+
Dispose();
30+
}
31+
2532
public async void Init()
2633
{
2734
try
@@ -130,6 +137,11 @@ public void Input(string input)
130137
{
131138
p.StandardInput.WriteLine(input);
132139
}
140+
141+
public void Dispose()
142+
{
143+
throw new NotImplementedException();
144+
}
133145
}
134146
}
135147

0 commit comments

Comments
 (0)