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