5 writes to AppHosts
aspire (1)
Backchannel\TrayWatchStream.cs (1)
289
AppHosts
= hosts.Select((host, index) => host with { Health = healthSubscriptions[candidates[index].Connection].Health })
Aspire.Cli.Tests (4)
Backchannel\TrayWatchStreamTests.cs (4)
984
AppHosts
= [host]
989
JsonSerializer.Serialize(snapshot with {
AppHosts
= [host with { Health = "healthy" }] }, TrayCliJsonContext.Default.TrayWatchMessage),
990
JsonSerializer.Serialize(snapshot with {
AppHosts
= [host with { Health = "warning" }] }, TrayCliJsonContext.Default.TrayWatchMessage),
991
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);
359
Assert.Collection(snapshot.
AppHosts
!,
409
Assert.Null(Assert.Single(initial.
AppHosts
!).DashboardUrl);
414
var host = Assert.Single(retried.
AppHosts
!);
544
Assert.Equal(Enumerable.Range(1, TrayCliProtocol.MaximumAppHosts), snapshot.
AppHosts
!.Select(host => host.AppHostPid));
545
Assert.All(snapshot.
AppHosts
!, host => Assert.Null(host.DashboardUrl));
593
Assert.Equal(blockedCount, initial.
AppHosts
!.Count);
594
Assert.All(initial.
AppHosts
, host => Assert.Null(host.DashboardUrl));
615
var host = Assert.Single(snapshot.
AppHosts
!);
621
Assert.Collection(snapshot.
AppHosts
!,
656
Assert.Null(Assert.Single(snapshot.
AppHosts
!).DashboardUrl);
736
return Assert.Single(message.
AppHosts
!);
780
Assert.Equal("healthy", Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).
AppHosts
!).Health);
785
Assert.Null(Assert.Single(message.
AppHosts
!).Health);
823
var first = Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).
AppHosts
!);
828
Assert.Empty((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).
AppHosts
!);
833
var second = Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).
AppHosts
!);
899
Assert.Equal("healthy", Assert.Single((await messages.Reader.ReadAsync().DefaultTimeout()).
AppHosts
!).Health);
903
Assert.Empty((await messages.Reader.ReadAsync().DefaultTimeout()).
AppHosts
!);
906
var host = Assert.Single((await messages.Reader.ReadAsync().DefaultTimeout()).
AppHosts
!);
Commands\TrayProtocolCommandTests.cs (1)
45
Assert.Empty(message.
AppHosts
!);