1 write to App
Aspire.Hosting.DevTunnels.Tests (1)
TestDevTunnelMonitor.cs (1)
38
App
= _builder.Build();
22 references to App
Aspire.Hosting.DevTunnels.Tests (22)
DevTunnelMonitorTests.cs (16)
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
277
test.
App
.Services.GetRequiredService<IDistributedApplicationEventing>()
316
test.
App
.Services.GetRequiredService<IDistributedApplicationEventing>().Subscribe<ResourceEndpointsAllocatedEvent>(test.Port,
317
async (_, _) => await test.
App
.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with
376
await test.
App
.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with
408
await test.
App
.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with
539
await test.
App
.ResourceNotifications.PublishUpdateAsync(test.Tunnel, s => s with { State = KnownResourceStates.FailedToStart });
540
await test.
App
.ResourceNotifications.WaitForResourceAsync(test.Port.Name, KnownResourceStates.Finished).DefaultTimeout();
756
test.
App
.Services.GetRequiredService<IDistributedApplicationEventing>().Subscribe<ResourceEndpointsAllocatedEvent>(test.Port, async (_, ct) =>
777
test.
App
.Services.GetRequiredService<IDistributedApplicationEventing>().Subscribe<ResourceEndpointsAllocatedEvent>(test.Port, (_, _) =>
854
var probe = test.
App
.Services.GetRequiredService<DisposalProbe>();
TestDevTunnelMonitor.cs (6)
39
Monitor =
App
.Services.GetRequiredKeyedService<DevTunnelMonitor>(Tunnel);
61
await
App
.ResourceNotifications.PublishUpdateAsync(Tunnel, s => s with { State = KnownResourceStates.Running });
88
await
App
.ResourceNotifications.WaitForResourceAsync(Port.Name,
94
Assert.True(
App
.ResourceNotifications.TryGetCurrentState(resource.Name, out var current));
100
await using var reader =
App
.Services.GetRequiredService<ResourceLoggerService>().WatchAsync(resource ?? Tunnel).GetAsyncEnumerator();
110
App
.Dispose();