12 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 (11)
Backchannel\TrayWatchStreamTests.cs (11)
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()); 892Assert.Equal(first with { Health = "warning", ProcessStartTimeUnixMilliseconds = 2000 }, second); 1047JsonSerializer.Serialize(snapshot with { AppHosts = [host with { Health = "healthy" }] }, TrayCliJsonContext.Default.TrayWatchMessage), 1048JsonSerializer.Serialize(snapshot with { AppHosts = [host with { Health = "warning" }] }, TrayCliJsonContext.Default.TrayWatchMessage), 1049JsonSerializer.Serialize(snapshot with { AppHosts = [host with { Health = "unhealthy" }] }, TrayCliJsonContext.Default.TrayWatchMessage),
6 references to Health
Aspire.Cli.Tests (6)
Backchannel\TrayWatchStreamTests.cs (6)
755Assert.Equal("warning", initial.Health); 838Assert.Equal("healthy", Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).AppHosts!).Health); 843Assert.Null(Assert.Single(message.AppHosts!).Health); 882Assert.Equal("healthy", first.Health); 957Assert.Equal("healthy", Assert.Single((await messages.Reader.ReadAsync().DefaultTimeout()).AppHosts!).Health); 966Assert.Equal("warning", host.Health);