26 instantiations of DevTunnelPortOptions
Aspire.Hosting.DevTunnels (6)
DevTunnelCli.cs (2)
191options ??= new DevTunnelPortOptions(); 211options ??= new DevTunnelPortOptions();
DevTunnelResource.cs (1)
74Options = options ?? new DevTunnelPortOptions();
DevTunnelResourceBuilderExtensions.cs (3)
272return tunnelBuilder.WithReference(resourceBuilder, new DevTunnelPortOptions { AllowAnonymous = allowAnonymous }); 329=> tunnelBuilder.WithReference(targetEndpoint, new DevTunnelPortOptions { AllowAnonymous = allowAnonymous }); 588portOptions ??= new();
Aspire.Hosting.DevTunnels.Tests (19)
DevTunnelCliClientTests.cs (19)
16await cli.CreatePortAsync("mytunnel.usw2", 3000, new() 52await client.CreatePortAsync("mytunnel.usw2", 3000, new() { Description = "", Protocol = "http", Labels = ["label"] }); 124await client.CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http", Labels = ["label"], AllowAnonymous = true }); 239CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http", Labels = ["label"], AllowAnonymous = true })); 271CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { AllowAnonymous = false })); 298await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http", Labels = ["label"], AllowAnonymous = allowAnonymous }); 314CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { AllowAnonymous = false })); 337var result = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() 354await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http", Labels = ["label"] }); 368await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() 415new() { Protocol = "http", Labels = ["label"], AllowAnonymous = false }, cancellationToken: cts.Token); 437new() { Protocol = "http", Labels = ["label"], AllowAnonymous = allowAnonymous }); 459new() { Protocol = "http", Labels = ["label"], AllowAnonymous = false }); 474new() { Protocol = "http", Labels = ["label"], AllowAnonymous = true }); 489new() { Protocol = "http", Labels = ["label"], AllowAnonymous = false }); 518new() { Protocol = "http", Labels = ["label"], AllowAnonymous = false }, cancellationToken: cts.Token); 541new() { Protocol = "http", Labels = ["label"], AllowAnonymous = false }); 558var result = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() 575var result = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http" });
Aspire.Hosting.Maui (1)
MauiOtlpExtensions.cs (1)
214var tunnelPortOptions = new DevTunnelPortOptions { Protocol = initialOtlpScheme };
15 references to DevTunnelPortOptions
Aspire.Hosting.DevTunnels (11)
DevTunnelCli.cs (2)
185DevTunnelPortOptions? options = null, 205DevTunnelPortOptions? options = null,
DevTunnelCliClient.cs (2)
222public Task<DevTunnelPortStatus> CreatePortAsync(string tunnelId, int portNumber, DevTunnelPortOptions portOptions, ILogger? logger = default, CancellationToken cancellationToken = default) 225private async Task<DevTunnelPortStatus> CreatePortCoreAsync(string tunnelId, int portNumber, DevTunnelPortOptions portOptions, ILogger? logger, CancellationToken cancellationToken)
DevTunnelResource.cs (2)
71DevTunnelPortOptions? options = null) : base(name) 93public DevTunnelPortOptions Options { get; }
DevTunnelResourceBuilderExtensions.cs (4)
280/// To expose only specific endpoints on the referenced resource, use <see cref="WithReference(IResourceBuilder{DevTunnelResource}, EndpointReference, DevTunnelPortOptions?)"/>. 290DevTunnelPortOptions? portOptions = null) 345DevTunnelPortOptions? portOptions) 566DevTunnelPortOptions? portOptions)
IDevTunnelClient.cs (1)
21Task<DevTunnelPortStatus> CreatePortAsync(string tunnelId, int portNumber, DevTunnelPortOptions options, ILogger? logger = default, CancellationToken cancellationToken = default);
Aspire.Hosting.DevTunnels.Tests (1)
TestDevTunnelClient.cs (1)
60public Task<DevTunnelPortStatus> CreatePortAsync(string tunnelId, int portNumber, DevTunnelPortOptions options, ILogger? logger = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Maui (3)
Annotations\OtlpDevTunnelConfigurationAnnotation.cs (2)
17private readonly DevTunnelPortOptions _tunnelPortOptions; 54DevTunnelPortOptions tunnelPortOptions,
MauiOtlpExtensions.cs (1)
214var tunnelPortOptions = new DevTunnelPortOptions { Protocol = initialOtlpScheme };