2 instantiations of TrayAppHost
aspire (1)
Backchannel\TrayWatchStream.cs (1)
216candidates.Add((connection, new TrayAppHost
Aspire.Cli.Tests (1)
Backchannel\TrayWatchStreamTests.cs (1)
1037var host = new TrayAppHost { AppHostPath = "/project/apphost.cs", AppHostPid = 42, ProcessStartTimeUnixMilliseconds = 1000 };
18 references to TrayAppHost
aspire (10)
Backchannel\TrayResourceHealthSubscription.cs (2)
20TrayAppHost host, 30public TrayAppHost Host { get; }
Backchannel\TrayWatchStream.cs (7)
51List<(IAppHostAuxiliaryBackchannel Connection, TrayAppHost Host)> candidates = []; 52TrayAppHost[] hosts = []; 224var currentConnections = new Dictionary<IAppHostAuxiliaryBackchannel, TrayAppHost>(ReferenceEqualityComparer.Instance); 231if (!currentConnections.TryGetValue(connection, out var host) || subscription.Host != host) 313private async Task<TrayAppHost[]> EnrichDashboardUrlsAsync( 314List<(IAppHostAuxiliaryBackchannel Connection, TrayAppHost Host)> candidates, 317var hosts = new TrayAppHost[candidates.Count];
src\Shared\TrayCliProtocol.cs (1)
39public IReadOnlyList<TrayAppHost>? AppHosts { get; init; }
Aspire.Cli.Tests (8)
Backchannel\TrayWatchStreamTests.cs (8)
472var host = Assert.Single(retried.AppHosts!); 673var host = Assert.Single(snapshot.AppHosts!); 754var initial = await ReadHostAsync(); 790async Task<TrayAppHost> ReadHostAsync() 881var first = Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).AppHosts!); 891var second = Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).AppHosts!); 964var host = Assert.Single((await messages.Reader.ReadAsync().DefaultTimeout()).AppHosts!); 1037var host = new TrayAppHost { AppHostPath = "/project/apphost.cs", AppHostPid = 42, ProcessStartTimeUnixMilliseconds = 1000 };