22 instantiations of StartResult
Aspire.Tray.Tests (22)
CliAppHostClientTests.cs (1)
35
Assert.Equal(new
StartResult
(StartOutcome.Started, 0),
CliAppHostCommandsTests.cs (4)
240
Assert.Equal(new
StartResult
(StartOutcome.NotFound, null),
264
Assert.Equal(new
StartResult
(exitCode == 0 ? StartOutcome.Started : StartOutcome.Failed, exitCode), result);
328
Assert.Equal(new
StartResult
(StartOutcome.TimedOut, null), await task.ConfigureAwait(true));
339
Assert.Equal(new
StartResult
(StartOutcome.Failed, null),
src\Aspire.Tray\Common\CliAppHostCommands.cs (4)
55
return
new
(StartOutcome.NotFound, null);
68
return
new
(StartOutcome.Failed, null);
82
return
new
(process.ExitCode == 0 ? StartOutcome.Started : StartOutcome.Failed, process.ExitCode);
86
return
new
(StartOutcome.TimedOut, null);
src\Aspire.Tray\Common\TrayController.cs (2)
443
result =
new
(StartOutcome.NotFound, null);
448
result =
new
(StartOutcome.Failed, null);
TrayControllerPinPruningTests.cs (1)
175
client.CompleteStart(path,
new
(StartOutcome.Started, 0));
TrayControllerPreferencesTests.cs (2)
186
client.CompleteStart(path,
new
(StartOutcome.Failed, 7));
193
client.CompleteStart(path,
new
(StartOutcome.Started, 0));
TrayControllerSavedStateTests.cs (8)
35
client.CompleteStart(path,
new
(successful ? StartOutcome.Started : StartOutcome.TimedOut, null));
75
client.CompleteStart(path,
new
(successful ? StartOutcome.Started : StartOutcome.TimedOut, null));
110
client.CompleteStart(path,
new
(StartOutcome.Started, 0));
139
client.CompleteStart(path,
new
(StartOutcome.Started, 0));
169
client.CompleteStart(path,
new
(successful ? StartOutcome.Started : StartOutcome.TimedOut, null));
370
client.CompleteStart(path,
new
(StartOutcome.TimedOut, null));
414
client.CompleteStart(first,
new
(StartOutcome.Started, 0));
493
client.CompleteStart(path,
new
(StartOutcome.TimedOut, null));
11 references to StartResult
Aspire.Tray.Tests (11)
CliAppHostCommandsTests.cs (1)
262
var
result = await commands.StartAsync(appHost, TestContext.Current.CancellationToken);
Helpers\TestAppHostClient.cs (4)
18
private readonly ConcurrentDictionary<string, TaskCompletionSource<
StartResult
>> _starts = new(TrayAppHostPath.Comparer);
68
public async Task<
StartResult
> StartAsync(string appHostPath, CancellationToken cancellationToken)
70
var completion = new TaskCompletionSource<
StartResult
>(TaskCreationOptions.RunContinuationsAsynchronously);
88
public void CompleteStart(string appHostPath,
StartResult
result) => _starts[appHostPath].SetResult(result);
src\Aspire.Tray\Common\CliAppHostClient.cs (1)
40
public Task<
StartResult
> StartAsync(string appHostPath, CancellationToken cancellationToken)
src\Aspire.Tray\Common\CliAppHostCommands.cs (1)
45
public async Task<
StartResult
> StartAsync(string appHostPath, CancellationToken cancellationToken)
src\Aspire.Tray\Common\IAppHostClient.cs (1)
10
Task<
StartResult
> StartAsync(string appHostPath, CancellationToken cancellationToken);
src\Aspire.Tray\Common\TrayController.cs (3)
423
StartResult
result;
426
Task<
StartResult
> command;
745
public
StartResult
? Result { get; set; }