8 writes to ExitCode
Aspire.Hosting (4)
Dcp\ResourceSnapshotBuilder.cs (4)
50
ExitCode
= container.Status?.ExitCode is null or Conventions.UnknownExitCode ? null : container.Status.ExitCode,
113
ExitCode
= executable.Status?.ExitCode,
164
ExitCode
= executable.Status?.ExitCode,
188
ExitCode
= executable.Status?.ExitCode,
Aspire.Hosting.Tests (4)
ResourceNotificationTests.cs (1)
434
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with {
ExitCode
= 0 }).DefaultTimeout();
WaitForTests.cs (3)
462
ExitCode
= 0
509
ExitCode
= 0
618
ExitCode
= 3 // Exit code does not match expected exit code above intentionally.
14 references to ExitCode
Aspire.Hosting (12)
ApplicationModel\ResourceNotificationService.cs (7)
302
else if ((snapshot.State!.Text == KnownResourceStates.Finished || snapshot.State!.Text == KnownResourceStates.Exited) && snapshot.
ExitCode
is not null && snapshot.
ExitCode
!= exitCode)
308
snapshot.
ExitCode
,
313
$"Resource '{displayName}' has entered the '{snapshot.State.Text}' state with exit code '{snapshot.
ExitCode
}', expected '{exitCode}'."
321
snapshot.
ExitCode
is not null;
696
newState.
ExitCode
,
892
WriteValueIfNotNull("Exit Code", snapshot.
ExitCode
);
Ats\NotificationExports.cs (1)
144
ExitCode = resourceEvent.Snapshot.
ExitCode
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
539
ExitCode = snapshot.
ExitCode
,
Dashboard\DashboardServiceData.cs (1)
54
ExitCode = snapshot.
ExitCode
,
DistributedApplication.cs (1)
641
if (Snapshot?.
ExitCode
is { } exitCode)
Exec\ExecResourceManager.cs (1)
133
if ((exitCode = resourceEvent?.Snapshot?.
ExitCode
) is not null)
Aspire.Hosting.DotnetTool.Tests (2)
DotnetToolFunctionalTests.cs.cs (2)
29
Assert.Equal(resourceState.Snapshot.
ExitCode
, 0);
51
Assert.NotEqual(resourceState.Snapshot.
ExitCode
, 0);