Implemented interface member:
method
CreateTunnelAsync
Aspire.Hosting.DevTunnels.IDevTunnelClient.CreateTunnelAsync(System.String, Aspire.Hosting.DevTunnels.DevTunnelOptions, Microsoft.Extensions.Logging.ILogger, System.Threading.CancellationToken)
18 references to CreateTunnelAsync
Aspire.Hosting.DevTunnels.Tests (18)
DevTunnelCliClientTests.cs (17)
34var result = await CreateClient(cli).CreateTunnelAsync("mytunnel", new() 51await client.CreateTunnelAsync("mytunnel", new() { Description = "" }); 62var result = await CreateClient(cli).CreateTunnelAsync("mytunnel", new() { Description = "new" }); 94var result = await CreateClient(cli).CreateTunnelAsync("mytunnel", new() { Description = "new" }); 128await client.CreateTunnelAsync("mytunnel", new() { AllowAnonymous = true }); 142await CreateClient(cli).CreateTunnelAsync("mytunnel", new() { AllowAnonymous = true }); 156await Assert.ThrowsAnyAsync<DistributedApplicationException>(() => CreateClient(cli).CreateTunnelAsync("mytunnel", new() { Description = "new" })); 166var result = await CreateClient(cli).CreateTunnelAsync("mytunnel", new()); 176await CreateClient(cli).CreateTunnelAsync("mytunnel", new() { AllowAnonymous = true }); 186await CreateClient(cli).CreateTunnelAsync("mytunnel", new()); 198await Assert.ThrowsAsync<DistributedApplicationException>(() => CreateClient(cli).CreateTunnelAsync("mytunnel", new())); 213await Assert.ThrowsAsync<DistributedApplicationException>(() => CreateClient(cli).CreateTunnelAsync(requested, new() { AllowAnonymous = true })); 225var result = await CreateClient(cli).CreateTunnelAsync(requested, new()); 250CreateClient(cli).CreateTunnelAsync("mytunnel", new() { Description = "new", AllowAnonymous = true })); 260await Assert.ThrowsAsync<DistributedApplicationException>(() => CreateClient(cli).CreateTunnelAsync("mytunnel", new())); 325await Assert.ThrowsAsync<DistributedApplicationException>(() => CreateClient(cli).CreateTunnelAsync("mytunnel", new())); 606() => client.CreateTunnelAsync("ghost", options));
DevTunnelExpirationTests.cs (1)
169var tunnel = await client.CreateTunnelAsync("mytunnel", options);