5 writes to AppHosts
aspire (1)
Backchannel\TrayWatchStream.cs (1)
289AppHosts = hosts.Select((host, index) => host with { Health = healthSubscriptions[candidates[index].Connection].Health })
Aspire.Cli.Tests (4)
Backchannel\TrayWatchStreamTests.cs (4)
984AppHosts = [host] 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),
28 references to AppHosts
Aspire.Cli.Tests (28)
Backchannel\TrayWatchStreamTests.cs (27)
45Assert.Empty(message.AppHosts!); 144Assert.Collection(message.AppHosts!, 148message => Assert.Equal(20, Assert.Single(message.AppHosts!).AppHostPid), 149message => Assert.Empty(message.AppHosts!)); 177Assert.Null(error.AppHosts); 180Assert.Single(messages[0].AppHosts!); 227Assert.Null(error.AppHosts); 241received.Add(Assert.Single(Deserialize(json).AppHosts!).AppHostPid); 359Assert.Collection(snapshot.AppHosts!, 409Assert.Null(Assert.Single(initial.AppHosts!).DashboardUrl); 414var host = Assert.Single(retried.AppHosts!); 544Assert.Equal(Enumerable.Range(1, TrayCliProtocol.MaximumAppHosts), snapshot.AppHosts!.Select(host => host.AppHostPid)); 545Assert.All(snapshot.AppHosts!, host => Assert.Null(host.DashboardUrl)); 593Assert.Equal(blockedCount, initial.AppHosts!.Count); 594Assert.All(initial.AppHosts, host => Assert.Null(host.DashboardUrl)); 615var host = Assert.Single(snapshot.AppHosts!); 621Assert.Collection(snapshot.AppHosts!, 656Assert.Null(Assert.Single(snapshot.AppHosts!).DashboardUrl); 736return Assert.Single(message.AppHosts!); 780Assert.Equal("healthy", Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).AppHosts!).Health); 785Assert.Null(Assert.Single(message.AppHosts!).Health); 823var first = Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).AppHosts!); 828Assert.Empty((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).AppHosts!); 833var second = Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).AppHosts!); 899Assert.Equal("healthy", Assert.Single((await messages.Reader.ReadAsync().DefaultTimeout()).AppHosts!).Health); 903Assert.Empty((await messages.Reader.ReadAsync().DefaultTimeout()).AppHosts!); 906var host = Assert.Single((await messages.Reader.ReadAsync().DefaultTimeout()).AppHosts!);
Commands\TrayProtocolCommandTests.cs (1)
45Assert.Empty(message.AppHosts!);