2 instantiations of TrayAppHost
aspire (1)
Backchannel\TrayWatchStream.cs (1)
214candidates.Add((connection, new TrayAppHost
Aspire.Cli.Tests (1)
Backchannel\TrayWatchStreamTests.cs (1)
979var 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 = []; 222var currentConnections = new Dictionary<IAppHostAuxiliaryBackchannel, TrayAppHost>(ReferenceEqualityComparer.Instance); 229if (!currentConnections.TryGetValue(connection, out var host) || subscription.Host != host) 311private async Task<TrayAppHost[]> EnrichDashboardUrlsAsync( 312List<(IAppHostAuxiliaryBackchannel Connection, TrayAppHost Host)> candidates, 315var hosts = new TrayAppHost[candidates.Count];
src\Shared\TrayCliProtocol.cs (1)
39public IReadOnlyList<TrayAppHost>? AppHosts { get; init; }
Aspire.Cli.Tests (8)
Backchannel\TrayWatchStreamTests.cs (8)
414var host = Assert.Single(retried.AppHosts!); 615var host = Assert.Single(snapshot.AppHosts!); 696var initial = await ReadHostAsync(); 732async Task<TrayAppHost> ReadHostAsync() 823var first = Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).AppHosts!); 833var second = Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).AppHosts!); 906var host = Assert.Single((await messages.Reader.ReadAsync().DefaultTimeout()).AppHosts!); 979var host = new TrayAppHost { AppHostPath = "/project/apphost.cs", AppHostPid = 42, ProcessStartTimeUnixMilliseconds = 1000 };