21 writes to HealthStatus
Aspire.Cli.Tests (21)
Backchannel\TrayResourceHealthTests.cs (8)
39
HealthStatus
= health,
57
HealthStatus
= "Unhealthy",
73
new() { Name = "hidden-state", State = "Hidden",
HealthStatus
= "Unhealthy" },
82
[.. resources, new() { Name = "api", State = "Running",
HealthStatus
= "Healthy" }]));
90
new() { Name = "api", State = "Running",
HealthStatus
= "Healthy" },
94
Name = "generator", State = "NotStarted",
HealthStatus
= "Unhealthy",
110
new() { Name = "api", State = "Running",
HealthStatus
= "Healthy" },
112
new() { Name = "database", State = "Running",
HealthStatus
= "Unhealthy" }
Backchannel\TrayWatchStreamTests.cs (9)
733
new() { Name = "cache", State = "Running",
HealthStatus
= "Healthy", Version = 1 }
758
resourceUpdates.Writer.TryWrite(new() { Name = "api", State = "Running",
HealthStatus
= "Healthy", Version = 2 });
761
resourceUpdates.Writer.TryWrite(new() { Name = "cache", State = "Running",
HealthStatus
= "Degraded", Version = 2 });
764
resourceUpdates.Writer.TryWrite(new() { Name = "cache", State = "Running",
HealthStatus
= "Unhealthy", Version = 3 });
767
resourceUpdates.Writer.TryWrite(new() { Name = "cache", State = "Running",
HealthStatus
= "Healthy", Version = 4 });
770
resourceUpdates.Writer.TryWrite(new() { Name = "api", State = "Running",
HealthStatus
= "Unhealthy", Version = 1 });
824
connection.ResourceSnapshots = [new() { Name = "api", State = "Running",
HealthStatus
= "Healthy" }];
865
initial.ResourceSnapshots = [new() { Name = "api", State = "Running",
HealthStatus
= "Healthy" }];
931
initial.ResourceSnapshots = [new() { Name = "api", State = "Running",
HealthStatus
= "Healthy" }];
Commands\AgentMcpCommandTests.cs (1)
839
HealthStatus
= currentState == "Running" ? "Healthy" : null
Mcp\ListResourcesToolTests.cs (1)
671
HealthStatus
= index == 0 ? longText : null,
Mcp\WaitForResourcesToolTests.cs (2)
94
HealthStatus
= "Healthy"
374
HealthStatus
= "Healthy",
9 references to HealthStatus
aspire (9)
Backchannel\ResourceSnapshotMapper.cs (1)
155
HealthStatus = snapshot.
HealthStatus
,
Backchannel\TrayResourceHealth.cs (5)
54
|| (IsHealth(resource.
HealthStatus
, "Unhealthy") && !pendingCheck))
64
|| IsHealth(resource.
HealthStatus
, "Degraded")
73
&& resource.
HealthStatus
is null && resource.HealthReports.Length == 0))
85
return (resource.
HealthStatus
is null || IsHealth(resource.
HealthStatus
, "Healthy"))
Commands\DescribeCommand.cs (2)
406
var healthText = ColorHealth(snapshot.
HealthStatus
?.EscapeMarkup() ?? "-");
433
return new ResourceDisplayState(displayName, snapshot.State, snapshot.
HealthStatus
, endpoints);
Mcp\Tools\ListResourcesTool.cs (1)
212
HealthStatus = GetBoundedText(snapshot.
HealthStatus
),