5 writes to AppHosts
aspire (1)
Backchannel\TrayWatchStream.cs (1)
291
AppHosts
= hosts.Select((host, index) => host with { Health = healthSubscriptions[candidates[index].Connection].Health })
Aspire.Cli.Tests (4)
Backchannel\TrayWatchStreamTests.cs (4)
1092
AppHosts
= [host]
1097
JsonSerializer.Serialize(snapshot with {
AppHosts
= [host with { Health = "healthy" }] }, TrayCliJsonContext.Default.TrayWatchMessage),
1098
JsonSerializer.Serialize(snapshot with {
AppHosts
= [host with { Health = "warning" }] }, TrayCliJsonContext.Default.TrayWatchMessage),
1099
JsonSerializer.Serialize(snapshot with {
AppHosts
= [host with { Health = "unhealthy" }] }, TrayCliJsonContext.Default.TrayWatchMessage),
29 references to AppHosts
Aspire.Cli.Tests (29)
Backchannel\TrayWatchStreamTests.cs (28)
45
Assert.Empty(message.
AppHosts
!);
144
Assert.Collection(message.
AppHosts
!,
148
message => Assert.Equal(20, Assert.Single(message.
AppHosts
!).AppHostPid),
149
message => Assert.Empty(message.
AppHosts
!));
177
Assert.Null(error.
AppHosts
);
180
Assert.Single(messages[0].
AppHosts
!);
227
Assert.Null(error.
AppHosts
);
241
received.Add(Assert.Single(Deserialize(json).
AppHosts
!).AppHostPid);
417
Assert.Collection(snapshot.
AppHosts
!,
467
Assert.Null(Assert.Single(initial.
AppHosts
!).DashboardUrl);
472
var host = Assert.Single(retried.
AppHosts
!);
602
Assert.Equal(Enumerable.Range(1, TrayCliProtocol.MaximumAppHosts), snapshot.
AppHosts
!.Select(host => host.AppHostPid));
603
Assert.All(snapshot.
AppHosts
!, host => Assert.Null(host.DashboardUrl));
651
Assert.Equal(blockedCount, initial.
AppHosts
!.Count);
652
Assert.All(initial.
AppHosts
, host => Assert.Null(host.DashboardUrl));
673
var host = Assert.Single(snapshot.
AppHosts
!);
679
Assert.Collection(snapshot.
AppHosts
!,
714
Assert.Null(Assert.Single(snapshot.
AppHosts
!).DashboardUrl);
794
return Assert.Single(message.
AppHosts
!);
861
return Assert.Single(message.
AppHosts
!);
888
Assert.Equal("healthy", Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).
AppHosts
!).Health);
893
Assert.Null(Assert.Single(message.
AppHosts
!).Health);
931
var first = Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).
AppHosts
!);
936
Assert.Empty((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).
AppHosts
!);
941
var second = Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).
AppHosts
!);
1007
Assert.Equal("healthy", Assert.Single((await messages.Reader.ReadAsync().DefaultTimeout()).
AppHosts
!).Health);
1011
Assert.Empty((await messages.Reader.ReadAsync().DefaultTimeout()).
AppHosts
!);
1014
var host = Assert.Single((await messages.Reader.ReadAsync().DefaultTimeout()).
AppHosts
!);
Commands\TrayProtocolCommandTests.cs (1)
45
Assert.Empty(message.
AppHosts
!);