19 references to StartOutcome
aspire-tray (19)
NativeSmokeHarness.cs (1)
547
internal void CompleteStart() => _start.SetResult(new(
StartOutcome
.Started, 0));
src\Aspire.Tray\Common\CliAppHostCommands.cs (5)
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\IAppHostClient.cs (1)
65
internal sealed record StartResult(
StartOutcome
Outcome, int? ExitCode);
src\Aspire.Tray\Common\TrayController.cs (12)
443
result = new(
StartOutcome
.NotFound, null);
448
result = new(
StartOutcome
.Failed, null);
450
if (result.Outcome !=
StartOutcome
.Started)
465
if (!operation.Discovered && result.Outcome is
StartOutcome
.Started or
StartOutcome
.TimedOut)
470
if ((result.Outcome !=
StartOutcome
.NotFound || !removedPins.Contains(path))
621
|| operation.Result?.Outcome !=
StartOutcome
.Started || operation.Discovered || operation.ReconciliationExpired))
690
null or
StartOutcome
.Started => null,
691
StartOutcome
.NotFound => "The AppHost source file no longer exists.",
692
StartOutcome
.TimedOut => "Start timed out. The AppHost may still start; wait for discovery before retrying.",
748
public bool IsPending => Result is null || (Result.Outcome ==
StartOutcome
.Started && !Discovered && !ReconciliationExpired);
749
public bool BlocksStart => IsPending || (Result?.Outcome ==
StartOutcome
.TimedOut && !Discovered && !ReconciliationExpired);