10 references to Localhost
Aspire.Hosting (10)
ApplicationModel\EndpointReference.cs (1)
118public string Host => AllocatedEndpoint.Address ?? KnownHostNames.Localhost;
ApplicationModel\HostUrl.cs (1)
116retval = retval.Replace(KnownHostNames.Localhost, replacementHost, StringComparison.OrdinalIgnoreCase)
Dcp\DcpExecutor.cs (8)
1059if (string.Equals(KnownHostNames.Localhost, endpoint.TargetHost, StringComparison.OrdinalIgnoreCase)) 1061svc.Spec.Address = KnownHostNames.Localhost; 1978null or "" => (KnownHostNames.Localhost, EndpointBindingMode.SingleAddress), // Default is localhost 1979var s when EndpointHostHelpers.IsLocalhostOrLocalhostTld(s) => (KnownHostNames.Localhost, EndpointBindingMode.SingleAddress), // Explicitly set to localhost or .localhost subdomain 1983var ip when IPAddress.Any.Equals(ip) => (KnownHostNames.Localhost, EndpointBindingMode.IPv4AnyAddresses), // 0.0.0.0 (IPv4 all addresses) 1984var ip when IPAddress.IPv6Any.Equals(ip) => (KnownHostNames.Localhost, EndpointBindingMode.IPv6AnyAddresses), // :: (IPv6 all addresses) 1987_ => (KnownHostNames.Localhost, EndpointBindingMode.DualStackAnyAddresses), // Any other target host is treated as binding to all IPv4 AND IPv6 addresses 2526if (sp.EndpointAnnotation.TargetHost != KnownHostNames.Localhost)