8 references to SingleAddress
Aspire.Hosting (7)
ApplicationModel\AllocatedEndpoint.cs (1)
72: this(endpoint, address, port, EndpointBindingMode.SingleAddress, containerHostAddress, targetPortExpression)
Dcp\DcpExecutor.cs (4)
1656null or "" => ("localhost", EndpointBindingMode.SingleAddress), // Default is localhost 1657var s when string.Equals(s, "localhost", StringComparison.OrdinalIgnoreCase) => ("localhost", EndpointBindingMode.SingleAddress), // Explicitly set to localhost 1658var s when s.Length > 10 && s.EndsWith(".localhost", StringComparison.OrdinalIgnoreCase) => ("localhost", EndpointBindingMode.SingleAddress), // Explicitly set to localhost when using .localhost subdomain 1663_ => (s, EndpointBindingMode.SingleAddress), // Any other IP address is returned as-is as that will be the only address the service is bound to
Orchestrator\ApplicationOrchestrator.cs (2)
234EndpointBindingMode.SingleAddress when !allocatedEndpoint.Address.Equals(endpoint.TargetHost, StringComparison.OrdinalIgnoreCase) => new ResourceUrlAnnotation 240EndpointBindingMode.SingleAddress => null,
Aspire.Hosting.Tests (1)
WithEndpointTests.cs (1)
645Assert.Equal(EndpointBindingMode.SingleAddress, endpoint.AllocatedEndpoint.BindingMode);