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)
34
var result = await CreateClient(cli).
CreateTunnelAsync
("mytunnel", new()
51
await client.
CreateTunnelAsync
("mytunnel", new() { Description = "" });
62
var result = await CreateClient(cli).
CreateTunnelAsync
("mytunnel", new() { Description = "new" });
94
var result = await CreateClient(cli).
CreateTunnelAsync
("mytunnel", new() { Description = "new" });
128
await client.
CreateTunnelAsync
("mytunnel", new() { AllowAnonymous = true });
142
await CreateClient(cli).
CreateTunnelAsync
("mytunnel", new() { AllowAnonymous = true });
156
await Assert.ThrowsAnyAsync<DistributedApplicationException>(() => CreateClient(cli).
CreateTunnelAsync
("mytunnel", new() { Description = "new" }));
166
var result = await CreateClient(cli).
CreateTunnelAsync
("mytunnel", new());
176
await CreateClient(cli).
CreateTunnelAsync
("mytunnel", new() { AllowAnonymous = true });
186
await CreateClient(cli).
CreateTunnelAsync
("mytunnel", new());
198
await Assert.ThrowsAsync<DistributedApplicationException>(() => CreateClient(cli).
CreateTunnelAsync
("mytunnel", new()));
213
await Assert.ThrowsAsync<DistributedApplicationException>(() => CreateClient(cli).
CreateTunnelAsync
(requested, new() { AllowAnonymous = true }));
225
var result = await CreateClient(cli).
CreateTunnelAsync
(requested, new());
250
CreateClient(cli).
CreateTunnelAsync
("mytunnel", new() { Description = "new", AllowAnonymous = true }));
260
await Assert.ThrowsAsync<DistributedApplicationException>(() => CreateClient(cli).
CreateTunnelAsync
("mytunnel", new()));
325
await Assert.ThrowsAsync<DistributedApplicationException>(() => CreateClient(cli).
CreateTunnelAsync
("mytunnel", new()));
606
() => client.
CreateTunnelAsync
("ghost", options));
DevTunnelExpirationTests.cs (1)
169
var tunnel = await client.
CreateTunnelAsync
("mytunnel", options);