8 references to SingleAddress
Aspire.Hosting (7)
ApplicationModel\AllocatedEndpoint.cs (1)
72
: this(endpoint, address, port, EndpointBindingMode.
SingleAddress
, containerHostAddress, targetPortExpression)
Dcp\DcpExecutor.cs (4)
1656
null or "" => ("localhost", EndpointBindingMode.
SingleAddress
), // Default is localhost
1657
var s when string.Equals(s, "localhost", StringComparison.OrdinalIgnoreCase) => ("localhost", EndpointBindingMode.
SingleAddress
), // Explicitly set to localhost
1658
var 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)
234
EndpointBindingMode.
SingleAddress
when !allocatedEndpoint.Address.Equals(endpoint.TargetHost, StringComparison.OrdinalIgnoreCase) => new ResourceUrlAnnotation
240
EndpointBindingMode.
SingleAddress
=> null,
Aspire.Hosting.Tests (1)
WithEndpointTests.cs (1)
645
Assert.Equal(EndpointBindingMode.
SingleAddress
, endpoint.AllocatedEndpoint.BindingMode);