38 references to StartOutcome
Aspire.Tray.Tests (38)
CliAppHostClientTests.cs (1)
35Assert.Equal(new StartResult(StartOutcome.Started, 0),
CliAppHostCommandsTests.cs (5)
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 (5)
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\IAppHostClient.cs (1)
65internal sealed record StartResult(StartOutcome Outcome, int? ExitCode);
src\Aspire.Tray\Common\TrayController.cs (12)
423result = new(StartOutcome.NotFound, null); 428result = new(StartOutcome.Failed, null); 430if (result.Outcome != StartOutcome.Started) 445if (!operation.Discovered && result.Outcome is StartOutcome.Started or StartOutcome.TimedOut) 450if ((result.Outcome != StartOutcome.NotFound || !removedPins.Contains(path)) 602|| operation.Result?.Outcome != StartOutcome.Started || operation.Discovered || operation.ReconciliationExpired)) 674null or StartOutcome.Started => null, 675StartOutcome.NotFound => "The AppHost source file no longer exists.", 676StartOutcome.TimedOut => "Start timed out. The AppHost may still start; wait for discovery before retrying.", 732public bool IsPending => Result is null || (Result.Outcome == StartOutcome.Started && !Discovered && !ReconciliationExpired); 733public bool BlocksStart => IsPending || (Result?.Outcome == StartOutcome.TimedOut && !Discovered && !ReconciliationExpired);
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 (11)
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));