1 write to App
Aspire.Hosting.DevTunnels.Tests (1)
TestDevTunnelMonitor.cs (1)
37
App
= _builder.Build();
20 references to App
Aspire.Hosting.DevTunnels.Tests (20)
DevTunnelMonitorTests.cs (14)
60
await test.
App
.ResourceNotifications.WaitForResourceAsync(test.Tunnel.Name,
92
test.
App
.Services.GetRequiredService<ResourceLoggerService>().GetLogger(test.Tunnel)
113
test.
App
.Services.GetRequiredService<IDistributedApplicationEventing>().Subscribe<ResourceEndpointsAllocatedEvent>(test.Port, async (_, ct) =>
155
await test.
App
.ResourceNotifications.WaitForResourceAsync(test.Port.Name, KnownResourceStates.Running).DefaultTimeout();
183
await test.
App
.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with
207
await test.
App
.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with
256
test.
App
.Services.GetRequiredService<IDistributedApplicationEventing>().Subscribe<ResourceEndpointsAllocatedEvent>(test.Port,
257
async (_, _) => await test.
App
.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with
316
await test.
App
.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with
348
await test.
App
.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with
479
await test.
App
.ResourceNotifications.PublishUpdateAsync(test.Tunnel, s => s with { State = KnownResourceStates.FailedToStart });
480
await test.
App
.ResourceNotifications.WaitForResourceAsync(test.Port.Name, KnownResourceStates.Finished).DefaultTimeout();
696
test.
App
.Services.GetRequiredService<IDistributedApplicationEventing>().Subscribe<ResourceEndpointsAllocatedEvent>(test.Port, async (_, ct) =>
717
test.
App
.Services.GetRequiredService<IDistributedApplicationEventing>().Subscribe<ResourceEndpointsAllocatedEvent>(test.Port, (_, _) =>
TestDevTunnelMonitor.cs (6)
38
Monitor =
App
.Services.GetRequiredKeyedService<DevTunnelMonitor>(Tunnel);
60
await
App
.ResourceNotifications.PublishUpdateAsync(Tunnel, s => s with { State = KnownResourceStates.Running });
87
await
App
.ResourceNotifications.WaitForResourceAsync(Port.Name,
93
Assert.True(
App
.ResourceNotifications.TryGetCurrentState(resource.Name, out var current));
99
await using var reader =
App
.Services.GetRequiredService<ResourceLoggerService>().WatchAsync(resource ?? Tunnel).GetAsyncEnumerator();
106
App
.Dispose();