22 references to StopOutcome
aspire-tray (22)
src\Aspire.Tray\Common\CliAppHostCommands.cs (2)
136
return new(
StopOutcome
.TimedOut, null);
140
return new(
StopOutcome
.Incompatible, process.HasExited ? process.ExitCode : null);
src\Aspire.Tray\Common\CliProtocol.cs (8)
83
public static
StopOutcome
GetStopOutcome(string outcome) => outcome switch
85
"stopped" =>
StopOutcome
.Stopped,
86
"not_found" =>
StopOutcome
.NotFound,
87
"ambiguous" =>
StopOutcome
.Ambiguous,
88
"identity_mismatch" =>
StopOutcome
.IdentityMismatch,
89
"identity_unavailable" =>
StopOutcome
.IdentityUnavailable,
90
"stop_failed" =>
StopOutcome
.Failed,
91
"invalid_request" =>
StopOutcome
.Incompatible,
src\Aspire.Tray\Common\IAppHostClient.cs (1)
55
internal sealed record StopResult(
StopOutcome
Outcome, int? ExitCode);
src\Aspire.Tray\Common\TrayController.cs (11)
289
if (_stops.TryGetValue(id, out var operation) && operation.Result?.Outcome ==
StopOutcome
.Stopped)
402
result = new(
StopOutcome
.Failed, null);
405
if (result.Outcome !=
StopOutcome
.Stopped)
596
var stopped = stop?.Result?.Outcome ==
StopOutcome
.Stopped;
698
null or
StopOutcome
.Stopped => null,
699
StopOutcome
.NotFound => "This AppHost is no longer running.",
700
StopOutcome
.Ambiguous => "The CLI could not identify a unique AppHost.",
701
StopOutcome
.IdentityMismatch => "The AppHost process changed. Refresh before stopping it.",
702
StopOutcome
.IdentityUnavailable => "The process identity could not be verified.",
703
StopOutcome
.TimedOut => "Stop timed out. The shutdown may still complete.",
704
StopOutcome
.Incompatible => "Incompatible CLI stop response. Use the matching Aspire build.",