15 references to SingleAddress
Aspire.Hosting (7)
ApplicationModel\AllocatedEndpoint.cs (1)
94
: this(endpoint, address, port, EndpointBindingMode.
SingleAddress
, targetPortExpression)
Dcp\DcpExecutor.cs (4)
995
EndpointBindingMode.
SingleAddress
,
1982
null or "" => (KnownHostNames.Localhost, EndpointBindingMode.
SingleAddress
), // Default is localhost
1983
var s when EndpointHostHelpers.IsLocalhostOrLocalhostTld(s) => (KnownHostNames.Localhost, EndpointBindingMode.
SingleAddress
), // Explicitly set to localhost or .localhost subdomain
1989
_ => (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)
248
EndpointBindingMode.
SingleAddress
when !allocatedEndpoint.Address.Equals(endpoint.TargetHost, StringComparison.OrdinalIgnoreCase) => new ResourceUrlAnnotation
254
EndpointBindingMode.
SingleAddress
=> null,
Aspire.Hosting.Containers.Tests (2)
ContainerResourceTests.cs (2)
105
var ccae = new AllocatedEndpoint(e, KnownHostNames.DefaultContainerTunnelHostName, 2234, EndpointBindingMode.
SingleAddress
, targetPortExpression: "2234", KnownNetworkIdentifiers.DefaultAspireContainerNetwork);
117
var ae = new AllocatedEndpoint(e, "localhost", 5678, EndpointBindingMode.
SingleAddress
, targetPortExpression: "5678", KnownNetworkIdentifiers.DefaultAspireContainerNetwork);
Aspire.Hosting.Tests (6)
ExpressionResolverTests.cs (4)
94
var ae = new AllocatedEndpoint(e, KnownHostNames.DefaultContainerTunnelHostName, 22345, EndpointBindingMode.
SingleAddress
, targetPortExpression: "22345", KnownNetworkIdentifiers.DefaultAspireContainerNetwork);
106
var ae = new AllocatedEndpoint(e, KnownHostNames.DefaultContainerTunnelHostName, 22346, EndpointBindingMode.
SingleAddress
, targetPortExpression: "22346", KnownNetworkIdentifiers.DefaultAspireContainerNetwork);
118
var ae = new AllocatedEndpoint(e, KnownHostNames.DefaultContainerTunnelHostName, 22347, EndpointBindingMode.
SingleAddress
, targetPortExpression: "22346", KnownNetworkIdentifiers.DefaultAspireContainerNetwork);
224
e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 8001, EndpointBindingMode.
SingleAddress
, "{{ targetPort }}", KnownNetworkIdentifiers.LocalhostNetwork);
WithEndpointTests.cs (1)
627
Assert.Equal(EndpointBindingMode.
SingleAddress
, endpoint.AllocatedEndpoint.BindingMode);
WithEnvironmentTests.cs (1)
309
EndpointBindingMode.
SingleAddress
,