12 writes to Health
aspire (1)
Backchannel\TrayWatchStream.cs (1)
289AppHosts = hosts.Select((host, index) => host with { Health = healthSubscriptions[candidates[index].Connection].Health })
Aspire.Cli.Tests (11)
Backchannel\TrayWatchStreamTests.cs (11)
701Assert.Equal(initial with { Health = "healthy" }, await ReadHostAsync()); 704Assert.Equal(initial with { Health = "warning" }, await ReadHostAsync()); 707Assert.Equal(initial with { Health = "unhealthy" }, await ReadHostAsync()); 710Assert.Equal(initial with { Health = "healthy" }, await ReadHostAsync()); 714Assert.Equal(initial with { Health = "unhealthy" }, await ReadHostAsync()); 717Assert.Equal(initial with { Health = "healthy" }, await ReadHostAsync()); 720Assert.Equal(initial with { Health = null }, await ReadHostAsync()); 834Assert.Equal(first with { Health = "warning", ProcessStartTimeUnixMilliseconds = 2000 }, second); 989JsonSerializer.Serialize(snapshot with { AppHosts = [host with { Health = "healthy" }] }, TrayCliJsonContext.Default.TrayWatchMessage), 990JsonSerializer.Serialize(snapshot with { AppHosts = [host with { Health = "warning" }] }, TrayCliJsonContext.Default.TrayWatchMessage), 991JsonSerializer.Serialize(snapshot with { AppHosts = [host with { Health = "unhealthy" }] }, TrayCliJsonContext.Default.TrayWatchMessage),
6 references to Health
Aspire.Cli.Tests (6)
Backchannel\TrayWatchStreamTests.cs (6)
697Assert.Equal("warning", initial.Health); 780Assert.Equal("healthy", Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).AppHosts!).Health); 785Assert.Null(Assert.Single(message.AppHosts!).Health); 824Assert.Equal("healthy", first.Health); 899Assert.Equal("healthy", Assert.Single((await messages.Reader.ReadAsync().DefaultTimeout()).AppHosts!).Health); 908Assert.Equal("warning", host.Health);