1 instantiation of BindingAddress
Microsoft.AspNetCore.Http (1)
BindingAddress.cs (1)
261return new BindingAddress(host: host, pathBase: pathBase, port: port, scheme: scheme);
58 references to BindingAddress
Aspire.Dashboard (20)
Configuration\DashboardOptions.cs (10)
72private BindingAddress? _parsedGrpcEndpointAddress; 73private BindingAddress? _parsedHttpEndpointAddress; 86public BindingAddress? GetGrpcEndpointAddress() 91public BindingAddress? GetHttpEndpointAddress() 152private List<BindingAddress>? _parsedEndpointAddresses; 172public IReadOnlyList<BindingAddress> GetEndpointAddresses() 188var addresses = new List<BindingAddress>(parts.Length); 191if (OptionsHelpers.TryParseBindingAddress(part, out var bindingAddress)) 213public static bool TryParseBindingAddress(string address, [NotNullWhen(true)] out BindingAddress? bindingAddress) 217bindingAddress = BindingAddress.Parse(address);
DashboardWebApplication.cs (9)
501var otlpGrpcAddress = dashboardOptions.Otlp.GetGrpcEndpointAddress(); 502var otlpHttpAddress = dashboardOptions.Otlp.GetHttpEndpointAddress(); 552if (requiredClientCertificate && IsHttpsOrNull(BindingAddress.Parse(url))) 650var address = BindingAddress.Parse(endpointConfiguration.ConfigSection["Url"]!); 660private static bool IsSameOrNull(BindingAddress frontendAddress, BindingAddress? otlpAddress) 870private static bool IsHttpsOrNull(BindingAddress? address) => address == null || string.Equals(address.Scheme, "https", StringComparison.Ordinal); 873public record EndpointInfo(BindingAddress BindingAddress, IPEndPoint EndPoint, bool IsHttps)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
27var httpEndpoint = options.GetHttpEndpointAddress();
Aspire.Hosting (3)
ProjectResourceBuilderExtensions.cs (3)
354BindingAddress = BindingAddress.Parse(endpoint["Url"]!), 433var bindingAddress = BindingAddress.Parse(url);
http2cat (2)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
59var address = BindingAddress.Parse(Options.Url);
IIS.FunctionalTests (2)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
59var address = BindingAddress.Parse(Options.Url);
IIS.LongTests (2)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
59var address = BindingAddress.Parse(Options.Url);
IIS.NewHandler.FunctionalTests (2)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
59var address = BindingAddress.Parse(Options.Url);
IIS.NewShim.FunctionalTests (2)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
59var address = BindingAddress.Parse(Options.Url);
IISExpress.FunctionalTests (2)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
59var address = BindingAddress.Parse(Options.Url);
Microsoft.AspNetCore.Http (5)
BindingAddress.cs (5)
25/// Initializes a new instance of <see cref="BindingAddress"/>. 136var other = obj as BindingAddress; 148/// Parses the specified <paramref name="address"/> as a <see cref="BindingAddress"/>. 152public static BindingAddress Parse(string address)
Microsoft.AspNetCore.Http.Tests (9)
BindingAddressTests.cs (9)
16Assert.Throws<FormatException>(() => BindingAddress.Parse(url)); 30Assert.Throws<FormatException>(() => BindingAddress.Parse(url)); 40Assert.Throws<FormatException>(() => BindingAddress.Parse(url)); 63var serverAddress = BindingAddress.Parse(url); 82var serverAddress = BindingAddress.Parse(url); 100var serverAddress = BindingAddress.Parse(url);
Microsoft.AspNetCore.HttpsPolicy (2)
HttpsRedirectionMiddleware.cs (2)
143var bindingAddress = BindingAddress.Parse(address);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
src\Shared\Http2cat\Http2CatHostedService.cs (2)
59var address = BindingAddress.Parse(Options.Url);
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\AddressBinder.cs (3)
74internal static bool TryCreateIPEndPoint(BindingAddress address, [NotNullWhen(true)] out IPEndPoint? endpoint) 102var parsedAddress = BindingAddress.Parse(address);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
AddressBinderTests.cs (2)
29BindingAddress.Parse(address), out var endpoint)); 46BindingAddress.Parse(address), out var endpoint));