38 references to StartOutcome
Aspire.Tray.Tests (38)
CliAppHostClientTests.cs (1)
35
Assert.Equal(new StartResult(
StartOutcome
.Started, 0),
CliAppHostCommandsTests.cs (5)
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 (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)
423
result = new(
StartOutcome
.NotFound, null);
428
result = new(
StartOutcome
.Failed, null);
430
if (result.Outcome !=
StartOutcome
.Started)
445
if (!operation.Discovered && result.Outcome is
StartOutcome
.Started or
StartOutcome
.TimedOut)
450
if ((result.Outcome !=
StartOutcome
.NotFound || !removedPins.Contains(path))
602
|| operation.Result?.Outcome !=
StartOutcome
.Started || operation.Discovered || operation.ReconciliationExpired))
674
null or
StartOutcome
.Started => null,
675
StartOutcome
.NotFound => "The AppHost source file no longer exists.",
676
StartOutcome
.TimedOut => "Start timed out. The AppHost may still start; wait for discovery before retrying.",
732
public bool IsPending => Result is null || (Result.Outcome ==
StartOutcome
.Started && !Discovered && !ReconciliationExpired);
733
public bool BlocksStart => IsPending || (Result?.Outcome ==
StartOutcome
.TimedOut && !Discovered && !ReconciliationExpired);
TrayControllerPinPruningTests.cs (1)
174
client.CompleteStart(path, new(
StartOutcome
.Started, 0));
TrayControllerPreferencesTests.cs (2)
132
client.CompleteStart(path, new(
StartOutcome
.Failed, 7));
139
client.CompleteStart(path, new(
StartOutcome
.Started, 0));
TrayControllerSavedStateTests.cs (11)
35
client.CompleteStart(path, new(successful ?
StartOutcome
.Started :
StartOutcome
.TimedOut, null));
74
client.CompleteStart(path, new(successful ?
StartOutcome
.Started :
StartOutcome
.TimedOut, null));
108
client.CompleteStart(path, new(
StartOutcome
.Started, 0));
135
client.CompleteStart(path, new(
StartOutcome
.Started, 0));
165
client.CompleteStart(path, new(successful ?
StartOutcome
.Started :
StartOutcome
.TimedOut, null));
366
client.CompleteStart(path, new(
StartOutcome
.TimedOut, null));
410
client.CompleteStart(first, new(
StartOutcome
.Started, 0));
489
client.CompleteStart(path, new(
StartOutcome
.TimedOut, null));