19 writes to HealthStatus
Aspire.Cli.Tests (19)
Backchannel\TrayResourceHealthTests.cs (6)
39
HealthStatus
= health,
57
HealthStatus
= "Unhealthy",
73
new() { Name = "hidden-state", State = "Hidden",
HealthStatus
= "Unhealthy" },
82
[.. resources, new() { Name = "api", State = "Running",
HealthStatus
= "Healthy" }]));
92
new() { Name = "api", State = "Running",
HealthStatus
= "Healthy" },
94
new() { Name = "database", State = "Running",
HealthStatus
= "Unhealthy" }
Backchannel\TrayWatchStreamTests.cs (9)
675
new() { Name = "cache", State = "Running",
HealthStatus
= "Healthy", Version = 1 }
700
resourceUpdates.Writer.TryWrite(new() { Name = "api", State = "Running",
HealthStatus
= "Healthy", Version = 2 });
703
resourceUpdates.Writer.TryWrite(new() { Name = "cache", State = "Running",
HealthStatus
= "Degraded", Version = 2 });
706
resourceUpdates.Writer.TryWrite(new() { Name = "cache", State = "Running",
HealthStatus
= "Unhealthy", Version = 3 });
709
resourceUpdates.Writer.TryWrite(new() { Name = "cache", State = "Running",
HealthStatus
= "Healthy", Version = 4 });
712
resourceUpdates.Writer.TryWrite(new() { Name = "api", State = "Running",
HealthStatus
= "Unhealthy", Version = 1 });
766
connection.ResourceSnapshots = [new() { Name = "api", State = "Running",
HealthStatus
= "Healthy" }];
807
initial.ResourceSnapshots = [new() { Name = "api", State = "Running",
HealthStatus
= "Healthy" }];
873
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)
45
|| (IsHealth(resource.
HealthStatus
, "Unhealthy") && !pendingCheck))
55
|| IsHealth(resource.
HealthStatus
, "Degraded")
64
&& resource.
HealthStatus
is null && resource.HealthReports.Length == 0))
76
return (resource.
HealthStatus
is null || IsHealth(resource.
HealthStatus
, "Healthy"))
Commands\DescribeCommand.cs (2)
385
var healthText = ColorHealth(snapshot.
HealthStatus
?.EscapeMarkup() ?? "-");
412
return new ResourceDisplayState(displayName, snapshot.State, snapshot.
HealthStatus
, endpoints);
Mcp\Tools\ListResourcesTool.cs (1)
212
HealthStatus = GetBoundedText(snapshot.
HealthStatus
),