7 references to IsLocalhostOrLocalhostTld
Aspire.Hosting (4)
ApplicationModel\EndpointHostHelpers.cs (1)
109
return uri?.Host is not null &&
IsLocalhostOrLocalhostTld
(uri.Host);
ApplicationModel\HostUrl.cs (1)
157
EndpointHostHelpers.
IsLocalhostOrLocalhostTld
(host) || host is "127.0.0.1" or "::1" or "[::1]";
Dashboard\DashboardServiceHost.cs (1)
235
return EndpointHostHelpers.
IsLocalhostOrLocalhostTld
(host);
Dcp\DcpModelUtilities.cs (1)
411
var s when EndpointHostHelpers.
IsLocalhostOrLocalhostTld
(s) => (KnownHostNames.Localhost, EndpointBindingMode.SingleAddress), // Explicitly set to localhost or .localhost subdomain
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
581
if (!EndpointHostHelpers.
IsLocalhostOrLocalhostTld
(targetEndpointAnnotation.TargetHost))
Aspire.Hosting.Maui (1)
MauiOtlpExtensions.cs (1)
499
EndpointHostHelpers.
IsLocalhostOrLocalhostTld
(host))
Aspire.Hosting.Tests (1)
ApplicationModel\EndpointHostHelpersTests.cs (1)
177
var result = EndpointHostHelpers.
IsLocalhostOrLocalhostTld
(host);