2 instantiations of TrayAppHost
aspire (1)
Backchannel\TrayWatchStream.cs (1)
216
candidates.Add((connection, new
TrayAppHost
Aspire.Cli.Tests (1)
Backchannel\TrayWatchStreamTests.cs (1)
1037
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 = [];
224
var currentConnections = new Dictionary<IAppHostAuxiliaryBackchannel,
TrayAppHost
>(ReferenceEqualityComparer.Instance);
231
if (!currentConnections.TryGetValue(connection, out
var
host) || subscription.Host != host)
313
private async Task<
TrayAppHost
[]> EnrichDashboardUrlsAsync(
314
List<(IAppHostAuxiliaryBackchannel Connection,
TrayAppHost
Host)> candidates,
317
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)
472
var
host = Assert.Single(retried.AppHosts!);
673
var
host = Assert.Single(snapshot.AppHosts!);
754
var
initial = await ReadHostAsync();
790
async Task<
TrayAppHost
> ReadHostAsync()
881
var
first = Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).AppHosts!);
891
var
second = Assert.Single((await messages.Reader.ReadAsync().AsTask().DefaultTimeout()).AppHosts!);
964
var
host = Assert.Single((await messages.Reader.ReadAsync().DefaultTimeout()).AppHosts!);
1037
var
host = new TrayAppHost { AppHostPath = "/project/apphost.cs", AppHostPid = 42, ProcessStartTimeUnixMilliseconds = 1000 };