13 references to EndpointHostHelpers
Aspire.Hosting (4)
Dcp\DcpExecutor.cs (1)
1983
var s when
EndpointHostHelpers
.IsLocalhostOrLocalhostTld(s) => (KnownHostNames.Localhost, EndpointBindingMode.SingleAddress), // Explicitly set to localhost or .localhost subdomain
Orchestrator\ApplicationOrchestrator.cs (2)
264
if (additionalUrl is not null &&
EndpointHostHelpers
.IsLocalhostTld(additionalUrl.Endpoint?.EndpointAnnotation.TargetHost))
274
&& additionalUrl is null &&
EndpointHostHelpers
.IsDevLocalhostTld(_dashboardUri))
ProjectResourceBuilderExtensions.cs (1)
1008
if (
EndpointHostHelpers
.IsLocalhost(host))
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
469
if (!
EndpointHostHelpers
.IsLocalhostOrLocalhostTld(targetEndpointAnnotation.TargetHost))
Aspire.Hosting.Tests (8)
ApplicationModel\EndpointHostHelpersTests.cs (8)
25
var result =
EndpointHostHelpers
.IsLocalhost(host);
45
var result =
EndpointHostHelpers
.IsLocalhost(new Uri($"http://{host}:12345"));
71
var result =
EndpointHostHelpers
.IsLocalhostTld(host);
94
var result =
EndpointHostHelpers
.IsLocalhostTld(new Uri($"http://{host}:12345"));
120
var result =
EndpointHostHelpers
.IsDevLocalhostTld(host);
144
var result =
EndpointHostHelpers
.IsDevLocalhostTld(new Uri($"http://{host}:12345"));
173
var result =
EndpointHostHelpers
.IsLocalhostOrLocalhostTld(host);
199
var result =
EndpointHostHelpers
.IsLocalhostOrLocalhostTld(new Uri($"http://{host}:12345"));