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