11 writes to ExitCode
Aspire.Cli.Tests (11)
Backchannel\TrayResourceHealthTests.cs (2)
40
ExitCode
= exitCode
77
new() { Name = "setup", State = "Finished",
ExitCode
= 0 }
Commands\DescribeCommandTests.cs (9)
38
var snapshot = new ResourceSnapshot { Name = "resource", State = state,
ExitCode
= exitCode };
53
new() { Name = "finished-positive", ResourceType = "Project", State = "Finished",
ExitCode
= 1 },
54
new() { Name = "finished-negative", ResourceType = "Project", State = "Finished",
ExitCode
= -532462766 },
55
new() { Name = "finished-zero", ResourceType = "Project", State = "Finished",
ExitCode
= 0 },
57
new() { Name = "exited-positive", ResourceType = "Container", State = "Exited",
ExitCode
= 1 },
58
new() { Name = "exited-negative", ResourceType = "Container", State = "Exited",
ExitCode
= -532462766 },
59
new() { Name = "exited-zero", ResourceType = "Container", State = "Exited",
ExitCode
= 0 },
78
new() { Name = "api", ResourceType = "Project", State = "Finished",
ExitCode
= -532462766 }
103
new() { Name = "api", ResourceType = "Project", State = "Finished",
ExitCode
= -532462766 }
4 references to ExitCode
aspire (4)
Backchannel\ResourceSnapshotMapper.cs (1)
158
ExitCode = snapshot.
ExitCode
,
Backchannel\TrayResourceHealth.cs (1)
55
|| (completed && resource.
ExitCode
is not null and not 0)
Commands\DescribeCommand.cs (1)
452
if (snapshot.
ExitCode
is int exitCode && snapshot.State?.ToUpperInvariant() is "FINISHED" or "EXITED")
Mcp\Tools\ListResourcesTool.cs (1)
213
ExitCode = snapshot.
ExitCode
,