15 references to EndpointHostHelpers
Aspire.Hosting (6)
Backchannel\DashboardUrlsHelper.cs (1)
73
apiBaseUrl = await
EndpointHostHelpers
.GetUrlWithTargetHostAsync(apiEndpoint, cancellationToken).ConfigureAwait(false);
Dashboard\DashboardEventHandlers.cs (1)
401
dashboardUrl = await
EndpointHostHelpers
.GetUrlWithTargetHostAsync(endpoint, cancellationToken).ConfigureAwait(false);
Dcp\DcpExecutor.cs (1)
2352
var s when
EndpointHostHelpers
.IsLocalhostOrLocalhostTld(s) => (KnownHostNames.Localhost, EndpointBindingMode.SingleAddress), // Explicitly set to localhost or .localhost subdomain
Orchestrator\ApplicationOrchestrator.cs (2)
275
if (additionalUrl is not null &&
EndpointHostHelpers
.IsLocalhostTld(additionalUrl.Endpoint?.EndpointAnnotation.TargetHost))
285
&& additionalUrl is null &&
EndpointHostHelpers
.IsDevLocalhostTld(_dashboardUri))
ProjectResourceBuilderExtensions.cs (1)
1009
if (
EndpointHostHelpers
.IsLocalhost(host))
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
486
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"));