1 write to Scheme
Microsoft.AspNetCore.Http (1)
BindingAddress.cs (1)
21Scheme = scheme;
34 references to Scheme
Aspire.Dashboard (4)
DashboardWebApplication.cs (4)
892private static bool IsHttpsOrNull(BindingAddress? address) => address == null || string.Equals(address.Scheme, "https", StringComparison.Ordinal); 901return BindingAddress.Scheme.ToLowerInvariant() + Uri.SchemeDelimiter + BindingAddress.Host.ToLowerInvariant() + ":" + EndPoint.Port.ToString(CultureInfo.InvariantCulture); 908return BindingAddress.Scheme.ToLowerInvariant() + Uri.SchemeDelimiter + "localhost:" + EndPoint.Port.ToString(CultureInfo.InvariantCulture); 911return BindingAddress.Scheme.ToLowerInvariant() + Uri.SchemeDelimiter + EndPoint.ToString();
Aspire.Hosting (13)
Dashboard\DashboardLifecycleHook.cs (3)
433dashboardResource.Annotations.Add(new EndpointAnnotation(ProtocolType.Tcp, uriScheme: address.Scheme, port: address.Port, isProxied: true) 442dashboardResource.Annotations.Add(new EndpointAnnotation(ProtocolType.Tcp, name: OtlpGrpcEndpointName, uriScheme: address.Scheme, port: address.Port, isProxied: true, transport: "http2") 451dashboardResource.Annotations.Add(new EndpointAnnotation(ProtocolType.Tcp, name: OtlpHttpEndpointName, uriScheme: address.Scheme, port: address.Port, isProxied: true)
Dashboard\TransportOptionsValidator.cs (2)
36if (parsedFirstApplicationUrl.Scheme == "http") 101if (parsedBindingAddress.Scheme == "http")
ProjectResourceBuilderExtensions.cs (8)
359.GroupBy(entry => entry.BindingAddress.Scheme); 399e.UriScheme = endpoint.BindingAddress.Scheme; 440endpointCountByScheme.TryGetValue(bindingAddress.Scheme, out var count); 441endpointCountByScheme[bindingAddress.Scheme] = count + 1; 448var endpointName = bindingAddress.Scheme; 449if (endpointCountByScheme[bindingAddress.Scheme] > 1) 451endpointName += endpointCountByScheme[bindingAddress.Scheme]; 458e.UriScheme = bindingAddress.Scheme;
http2cat (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
IIS.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
IIS.LongTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
IIS.NewHandler.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
IIS.NewShim.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
IISExpress.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Http (4)
BindingAddress.cs (4)
119return Scheme.ToLowerInvariant() + Uri.SchemeDelimiter + Host.ToLowerInvariant(); 123return Scheme.ToLowerInvariant() + Uri.SchemeDelimiter + Host.ToLowerInvariant() + ":" + Port.ToString(CultureInfo.InvariantCulture) + PathBase; 141return string.Equals(Scheme, other.Scheme, StringComparison.OrdinalIgnoreCase)
Microsoft.AspNetCore.Http.Tests (3)
BindingAddressTests.cs (3)
65Assert.Equal(scheme, serverAddress.Scheme); 84Assert.Equal(scheme, serverAddress.Scheme); 102Assert.Equal(scheme, serverAddress.Scheme);
Microsoft.AspNetCore.HttpsPolicy (1)
HttpsRedirectionMiddleware.cs (1)
144if (bindingAddress.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
82if (address.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\AddressBinder.cs (2)
105if (parsedAddress.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase)) 109else if (!parsedAddress.Scheme.Equals("http", StringComparison.OrdinalIgnoreCase))