1 write to ExitCode
Aspire.Hosting.Native.Core.Tests (1)
NativeProtocolParsingTests.cs (1)
133Assert.Equal(WorkloadPhase.Failed, DcpStates.Observe(new() { State = DcpProcessState.FailedToStart, ExitCode = 0 }).Phase);
5 references to ExitCode
Aspire.Hosting.Native.Core.Tests (1)
DcpJsonTests.cs (1)
55Assert.Null(resource.Status.ExitCode);
Aspire.Hosting.Native.Server (4)
Dcp\DcpStates.cs (4)
75DcpProcessState.Running => new(WorkloadPhase.Running, status.ExitCode), 76DcpProcessState.Exited or DcpProcessState.Finished or DcpProcessState.Terminated => new(WorkloadPhase.Exited, status.ExitCode), 77DcpProcessState.FailedToStart => new(WorkloadPhase.Failed, status.ExitCode), 79DcpProcessState.Stopping or DcpProcessState.RuntimeUnhealthy => new(WorkloadPhase.Pending, status.ExitCode),