10 references to EndpointBindingMode
Aspire.Hosting (10)
ApplicationModel\AllocatedEndpoint.cs (3)
49public AllocatedEndpoint(EndpointAnnotation endpoint, string address, int port, EndpointBindingMode bindingMode, string? containerHostAddress = null, string? targetPortExpression = null) 72: this(endpoint, address, port, EndpointBindingMode.SingleAddress, containerHostAddress, targetPortExpression) 90public EndpointBindingMode BindingMode { get; private set; }
Dcp\DcpExecutor.cs (7)
1509private static (string, EndpointBindingMode) NormalizeTargetHost(string targetHost) 1513null or "" => ("localhost", EndpointBindingMode.SingleAddress), // Default is localhost 1514var s when string.Equals(s, "localhost", StringComparison.OrdinalIgnoreCase) => ("localhost", EndpointBindingMode.SingleAddress), // Explicitly set to localhost 1517var ip when IPAddress.Any.Equals(ip) => ("localhost", EndpointBindingMode.IPv4AnyAddresses), // 0.0.0.0 (IPv4 all addresses) 1518var ip when IPAddress.IPv6Any.Equals(ip) => ("localhost", EndpointBindingMode.IPv6AnyAddresses), // :: (IPv6 all addreses) 1519_ => (s, EndpointBindingMode.SingleAddress), // Any other IP address is returned as-is 1521_ => ("localhost", EndpointBindingMode.DualStackAnyAddresses), // Any other target host is treated as binding to all IPv4 AND IPv6 addresses