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