17 writes to ExitCode
Aspire.Hosting (4)
Dcp\ResourceSnapshotBuilder.cs (4)
54
ExitCode
= container.Status?.ExitCode is null or Conventions.UnknownExitCode ? null : container.Status.ExitCode,
118
ExitCode
= executable.Status?.ExitCode,
183
ExitCode
= executable.Status?.ExitCode,
207
ExitCode
= executable.Status?.ExitCode,
Aspire.Hosting.Browsers (1)
BrowserLogsSessionManager.cs (1)
390
ExitCode
= resourceState.ActiveSessions.Count > 0 || pendingSession is not null ? null : exitCode,
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserLogsSessionManager.cs (1)
390
ExitCode
= resourceState.ActiveSessions.Count > 0 || pendingSession is not null ? null : exitCode,
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
517
ExitCode
= process.ExitCode
Aspire.Hosting.Maui (1)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
432
ExitCode
= null,
Aspire.Hosting.Tests (9)
Lifecycle\TerminalHostFailureDiagnosticServiceTests.cs (2)
74
ExitCode
= 1,
105
ExitCode
= 0,
ResourceNotificationTests.cs (4)
486
ExitCode
= 0
500
ExitCode
= 0
983
await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with {
ExitCode
= 0 }).DefaultTimeout();
1414
await notificationService.PublishUpdateAsync(resourceBuilder.Resource, snapshot => snapshot with { State = state,
ExitCode
= exitCode }).DefaultTimeout();
WaitForTests.cs (3)
462
ExitCode
= 0
509
ExitCode
= 0
618
ExitCode
= 3 // Exit code does not match expected exit code above intentionally.
28 references to ExitCode
Aspire.Hosting (25)
ApplicationModel\CommandsConfigurationExtensions.cs (1)
283
exitCode = evt.Snapshot.
ExitCode
;
ApplicationModel\CustomResourceSnapshot.cs (2)
188
ExitCode
!= other.
ExitCode
||
ApplicationModel\ResourceCommandAnnotation.cs (1)
433
ExitCode = snapshot.
ExitCode
ApplicationModel\ResourceNotificationService.cs (10)
344
else if ((snapshot.State!.Text == KnownResourceStates.Finished || snapshot.State!.Text == KnownResourceStates.Exited) && snapshot.
ExitCode
is not null && snapshot.
ExitCode
!= exitCode)
350
snapshot.
ExitCode
,
355
$"Resource '{resource.Name}' stopped waiting for dependency resource '{displayName}' because it entered the '{snapshot.State.Text}' state with exit code '{snapshot.
ExitCode
}', expected '{exitCode}'."
368
snapshot.
ExitCode
is not null;
934
newState.
ExitCode
,
1209
&& previousState.
ExitCode
is not null
1210
&& annotation.SuccessfulExitCodes.Contains(previousState.
ExitCode
.Value),
1298
WriteValueIfNotNull("Exit Code", snapshot.
ExitCode
);
1334
if (dependencyEvent.Snapshot.
ExitCode
is { } exitCode)
Ats\NotificationExports.cs (1)
158
ExitCode = resourceEvent.Snapshot.
ExitCode
Backchannel\AuxiliaryBackchannelRpcTarget.cs (3)
715
re.Snapshot.
ExitCode
is not null,
736
re => KnownResourceStates.TerminalStates.Contains(re.Snapshot.State?.Text) || re.Snapshot.
ExitCode
is not null,
1195
ExitCode = snapshot.
ExitCode
,
Dashboard\DashboardServiceData.cs (1)
82
ExitCode = snapshot.
ExitCode
,
Diagnostics\ProfilingTelemetry.cs (3)
1044
if (snapshot.
ExitCode
is { } exitCode)
1119
if (snapshot.
ExitCode
is { } exitCode)
1165
if (snapshot.
ExitCode
is { } exitCode)
DistributedApplication.cs (1)
846
if (Snapshot?.
ExitCode
is { } exitCode)
Lifecycle\TerminalHostFailureDiagnosticService.cs (2)
75
&& evt.Snapshot.
ExitCode
is 0)
119
var exitInfo = snapshot.
ExitCode
is { } code
Aspire.Hosting.DotnetTool.Tests (2)
DotnetToolFunctionalTests.cs.cs (2)
29
Assert.Equal(resourceState.Snapshot.
ExitCode
, 0);
51
Assert.NotEqual(resourceState.Snapshot.
ExitCode
, 0);
Aspire.Hosting.EntityFrameworkCore (1)
EFCoreOperationExecutor.cs (1)
352
var exitCode = snapshot.
ExitCode
;