1 write to Scheme
Microsoft.AspNetCore.Http (1)
BindingAddress.cs (1)
21Scheme = scheme;
27 references to Scheme
Aspire.Dashboard (4)
DashboardWebApplication.cs (4)
870private static bool IsHttpsOrNull(BindingAddress? address) => address == null || string.Equals(address.Scheme, "https", StringComparison.Ordinal); 879return BindingAddress.Scheme.ToLowerInvariant() + Uri.SchemeDelimiter + BindingAddress.Host.ToLowerInvariant() + ":" + EndPoint.Port.ToString(CultureInfo.InvariantCulture); 886return BindingAddress.Scheme.ToLowerInvariant() + Uri.SchemeDelimiter + "localhost:" + EndPoint.Port.ToString(CultureInfo.InvariantCulture); 889return BindingAddress.Scheme.ToLowerInvariant() + Uri.SchemeDelimiter + EndPoint.ToString();
Aspire.Hosting (6)
ProjectResourceBuilderExtensions.cs (6)
436endpointCountByScheme.TryGetValue(bindingAddress.Scheme, out var count); 437endpointCountByScheme[bindingAddress.Scheme] = count + 1; 444var endpointName = bindingAddress.Scheme; 445if (endpointCountByScheme[bindingAddress.Scheme] > 1) 447endpointName += endpointCountByScheme[bindingAddress.Scheme]; 454e.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))