24 references to EndpointBindingMode
Aspire.Hosting (14)
ApplicationModel\AllocatedEndpoint.cs (4)
52EndpointBindingMode bindingMode, 80EndpointBindingMode bindingMode, 94: this(endpoint, address, port, EndpointBindingMode.SingleAddress, targetPortExpression) 112public EndpointBindingMode BindingMode { get; private set; }
Dcp\DcpExecutor.cs (8)
995EndpointBindingMode.SingleAddress, 1978private static (string, EndpointBindingMode) NormalizeTargetHost(string targetHost) 1982null or "" => (KnownHostNames.Localhost, EndpointBindingMode.SingleAddress), // Default is localhost 1983var s when EndpointHostHelpers.IsLocalhostOrLocalhostTld(s) => (KnownHostNames.Localhost, EndpointBindingMode.SingleAddress), // Explicitly set to localhost or .localhost subdomain 1987var ip when IPAddress.Any.Equals(ip) => (KnownHostNames.Localhost, EndpointBindingMode.IPv4AnyAddresses), // 0.0.0.0 (IPv4 all addresses) 1988var ip when IPAddress.IPv6Any.Equals(ip) => (KnownHostNames.Localhost, EndpointBindingMode.IPv6AnyAddresses), // :: (IPv6 all addresses) 1989_ => (s, EndpointBindingMode.SingleAddress), // Any other IP address is returned as-is as that will be the only address the service is bound to 1991_ => (KnownHostNames.Localhost, EndpointBindingMode.DualStackAnyAddresses), // Any other target host is treated as binding to all IPv4 AND IPv6 addresses
Orchestrator\ApplicationOrchestrator.cs (2)
248EndpointBindingMode.SingleAddress when !allocatedEndpoint.Address.Equals(endpoint.TargetHost, StringComparison.OrdinalIgnoreCase) => new ResourceUrlAnnotation 254EndpointBindingMode.SingleAddress => null,
Aspire.Hosting.Containers.Tests (2)
ContainerResourceTests.cs (2)
105var ccae = new AllocatedEndpoint(e, KnownHostNames.DefaultContainerTunnelHostName, 2234, EndpointBindingMode.SingleAddress, targetPortExpression: "2234", KnownNetworkIdentifiers.DefaultAspireContainerNetwork); 117var ae = new AllocatedEndpoint(e, "localhost", 5678, EndpointBindingMode.SingleAddress, targetPortExpression: "5678", KnownNetworkIdentifiers.DefaultAspireContainerNetwork);
Aspire.Hosting.Tests (8)
ExpressionResolverTests.cs (4)
94var ae = new AllocatedEndpoint(e, KnownHostNames.DefaultContainerTunnelHostName, 22345, EndpointBindingMode.SingleAddress, targetPortExpression: "22345", KnownNetworkIdentifiers.DefaultAspireContainerNetwork); 106var ae = new AllocatedEndpoint(e, KnownHostNames.DefaultContainerTunnelHostName, 22346, EndpointBindingMode.SingleAddress, targetPortExpression: "22346", KnownNetworkIdentifiers.DefaultAspireContainerNetwork); 118var ae = new AllocatedEndpoint(e, KnownHostNames.DefaultContainerTunnelHostName, 22347, EndpointBindingMode.SingleAddress, targetPortExpression: "22346", KnownNetworkIdentifiers.DefaultAspireContainerNetwork); 224e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 8001, EndpointBindingMode.SingleAddress, "{{ targetPort }}", KnownNetworkIdentifiers.LocalhostNetwork);
WithEndpointTests.cs (3)
627Assert.Equal(EndpointBindingMode.SingleAddress, endpoint.AllocatedEndpoint.BindingMode); 634[InlineData("0.0.0.0", EndpointBindingMode.IPv4AnyAddresses)] 636public async Task TopLevelDomainSetsAnnotationValues(string host, EndpointBindingMode endpointBindingMode)
WithEnvironmentTests.cs (1)
309EndpointBindingMode.SingleAddress,