15 writes to Health
aspire (1)
Backchannel\TrayWatchStream.cs (1)
291AppHosts = hosts.Select((host, index) => host with { Health = healthSubscriptions[candidates[index].Connection].Health })
Aspire.Cli.Tests (14)
Backchannel\TrayWatchStreamTests.cs (14)
759Assert.Equal(initial with { Health = "healthy" }, await ReadHostAsync()); 762Assert.Equal(initial with { Health = "warning" }, await ReadHostAsync()); 765Assert.Equal(initial with { Health = "unhealthy" }, await ReadHostAsync()); 768Assert.Equal(initial with { Health = "healthy" }, await ReadHostAsync()); 772Assert.Equal(initial with { Health = "unhealthy" }, await ReadHostAsync()); 775Assert.Equal(initial with { Health = "healthy" }, await ReadHostAsync()); 778Assert.Equal(initial with { Health = null }, await ReadHostAsync()); 843Assert.Equal(initial with { Health = "healthy" }, await ReadHostAsync()); 846Assert.Equal(initial with { Health = "no_resources" }, await ReadHostAsync()); 849Assert.Equal(initial with { Health = null }, await ReadHostAsync()); 942Assert.Equal(first with { Health = "warning", ProcessStartTimeUnixMilliseconds = 2000 }, second); 1097JsonSerializer.Serialize(snapshot with { AppHosts = [host with { Health = "healthy" }] }, TrayCliJsonContext.Default.TrayWatchMessage), 1098JsonSerializer.Serialize(snapshot with { AppHosts = [host with { Health = "warning" }] }, TrayCliJsonContext.Default.TrayWatchMessage), 1099JsonSerializer.Serialize(snapshot with { AppHosts = [host with { Health = "unhealthy" }] }, TrayCliJsonContext.Default.TrayWatchMessage),
7 references to Health
Aspire.Cli.Tests (7)
Backchannel\TrayWatchStreamTests.cs (7)
755Assert.Equal("warning", initial.Health); 840Assert.Equal("no_resources", initial.Health); 888Assert.Equal("healthy", Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).AppHosts!).Health); 893Assert.Null(Assert.Single(message.AppHosts!).Health); 932Assert.Equal("healthy", first.Health); 1007Assert.Equal("healthy", Assert.Single((await messages.Reader.ReadAsync().DefaultTimeout()).AppHosts!).Health); 1016Assert.Equal("warning", host.Health);