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