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