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)
1042
AppHosts
= [host]
1047
JsonSerializer.Serialize(snapshot with {
AppHosts
= [host with { Health = "healthy" }] }, TrayCliJsonContext.Default.TrayWatchMessage),
1048
JsonSerializer.Serialize(snapshot with {
AppHosts
= [host with { Health = "warning" }] }, TrayCliJsonContext.Default.TrayWatchMessage),
1049
JsonSerializer.Serialize(snapshot with {
AppHosts
= [host with { Health = "unhealthy" }] }, TrayCliJsonContext.Default.TrayWatchMessage),
28 references to AppHosts
Aspire.Cli.Tests (28)
Backchannel\TrayWatchStreamTests.cs (27)
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
!);
838
Assert.Equal("healthy", Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).
AppHosts
!).Health);
843
Assert.Null(Assert.Single(message.
AppHosts
!).Health);
881
var first = Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).
AppHosts
!);
886
Assert.Empty((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).
AppHosts
!);
891
var second = Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).
AppHosts
!);
957
Assert.Equal("healthy", Assert.Single((await messages.Reader.ReadAsync().DefaultTimeout()).
AppHosts
!).Health);
961
Assert.Empty((await messages.Reader.ReadAsync().DefaultTimeout()).
AppHosts
!);
964
var host = Assert.Single((await messages.Reader.ReadAsync().DefaultTimeout()).
AppHosts
!);
Commands\TrayProtocolCommandTests.cs (1)
45
Assert.Empty(message.
AppHosts
!);