20 writes to Protocol
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
593portOptions.Protocol ??= targetEndpoint.Scheme switch
Aspire.Hosting.DevTunnels.Tests (17)
DevTunnelCliClientTests.cs (17)
18Protocol = "https", 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 })); 298await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http", Labels = ["label"], AllowAnonymous = allowAnonymous }); 339Protocol = "http", 354await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http", Labels = ["label"] }); 370Protocol = "http", 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 }); 560Protocol = protocol, 575var result = await CreateClient(cli).CreatePortAsync("mytunnel.usw2", 3000, new() { Protocol = "http" });
Aspire.Hosting.Maui (2)
Annotations\OtlpDevTunnelConfigurationAnnotation.cs (1)
76_tunnelPortOptions.Protocol = scheme;
MauiOtlpExtensions.cs (1)
214var tunnelPortOptions = new DevTunnelPortOptions { Protocol = initialOtlpScheme };
9 references to Protocol
Aspire.Hosting.DevTunnels (6)
DevTunnelCli.cs (1)
194.AddIfNotNull("--protocol", options.Protocol)
DevTunnelCliClient.cs (1)
234var protocolMatches = string.Equals(existing.Protocol, portOptions.Protocol ?? "auto", StringComparison.OrdinalIgnoreCase);
DevTunnelMonitor.cs (1)
582port.LastKnownStatus = run.Ports.TryGetValue(number, out var knownUri) ? new(number, port.Options.Protocol!) { PortUri = knownUri } : null;
DevTunnelOptions.cs (1)
110internal string ToLoggerString() => $"{{ Description={Description}, AllowAnonymous={AllowAnonymous}, Protocol={Protocol}, Labels=[{string.Join(", ", Labels ?? [])}] }}";
DevTunnelResourceBuilderExtensions.cs (2)
589if (portOptions.Protocol is { } proto && proto is not "http" and not "https" and not "auto") 710new("Protocol", portOptions.Protocol),
Aspire.Hosting.DevTunnels.Tests (1)
TestDevTunnelClient.cs (1)
63return Task.FromResult(new DevTunnelPortStatus(tunnelId, portNumber, options.Protocol ?? "https", ClientConnections: 0));
Aspire.Hosting.Maui.Tests (2)
MauiPlatformExtensionsTests.cs (2)
840Assert.Equal("http", Assert.Single(appBuilder.Resources.OfType<DevTunnelPortResource>()).Options.Protocol); 1038Assert.Equal("http", Assert.Single(appBuilder.Resources.OfType<DevTunnelPortResource>()).Options.Protocol);