22 references to EndpointHostHelpers
Aspire.Hosting (8)
Backchannel\DashboardUrlsHelper.cs (1)
98
apiBaseUrl = await
EndpointHostHelpers
.GetUrlWithTargetHostAsync(apiEndpoint, cancellationToken).ConfigureAwait(false);
Dashboard\DashboardEventHandlers.cs (2)
525
? await
EndpointHostHelpers
.GetUrlWithTargetHostAsync(endpoint, cancellationToken).ConfigureAwait(false)
580
? await
EndpointHostHelpers
.GetUrlWithTargetHostAsync(endpoint, cancellationToken).ConfigureAwait(false)
Dashboard\DashboardServiceHost.cs (1)
233
return
EndpointHostHelpers
.IsLocalhostOrLocalhostTld(host);
Dcp\DcpModelUtilities.cs (1)
364
var s when
EndpointHostHelpers
.IsLocalhostOrLocalhostTld(s) => (KnownHostNames.Localhost, EndpointBindingMode.SingleAddress), // Explicitly set to localhost or .localhost subdomain
Orchestrator\ApplicationOrchestrator.cs (2)
364
if (additionalUrl is not null &&
EndpointHostHelpers
.IsLocalhostTld(additionalUrl.Endpoint?.EndpointAnnotation.TargetHost))
374
&& additionalUrl is null &&
EndpointHostHelpers
.IsDevLocalhostTld(_dashboardUri))
ProjectResourceBuilderExtensions.cs (1)
1222
if (
EndpointHostHelpers
.IsLocalhost(host))
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
585
if (!
EndpointHostHelpers
.IsLocalhostOrLocalhostTld(targetEndpointAnnotation.TargetHost))
Aspire.Hosting.Maui (1)
MauiOtlpExtensions.cs (1)
499
EndpointHostHelpers
.IsLocalhostOrLocalhostTld(host))
Aspire.Hosting.Testing (1)
DistributedApplicationHostingTestingExtensions.cs (1)
106
var dashboardUrl = await
EndpointHostHelpers
.GetUrlWithTargetHostAsync(dashboardEndpoint, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (11)
ApplicationModel\EndpointHostHelpersTests.cs (11)
29
var result =
EndpointHostHelpers
.IsLocalhost(host);
49
var result =
EndpointHostHelpers
.IsLocalhost(new Uri($"http://{host}:12345"));
75
var result =
EndpointHostHelpers
.IsLocalhostTld(host);
98
var result =
EndpointHostHelpers
.IsLocalhostTld(new Uri($"http://{host}:12345"));
124
var result =
EndpointHostHelpers
.IsDevLocalhostTld(host);
148
var result =
EndpointHostHelpers
.IsDevLocalhostTld(new Uri($"http://{host}:12345"));
177
var result =
EndpointHostHelpers
.IsLocalhostOrLocalhostTld(host);
203
var result =
EndpointHostHelpers
.IsLocalhostOrLocalhostTld(new Uri($"http://{host}:12345"));
230
var url = await
EndpointHostHelpers
.GetUrlWithTargetHostAsync(container.GetEndpoint("primary"))
258
var url = await
EndpointHostHelpers
.GetUrlWithTargetHostAsync(containerNetworkEndpoint)
271
async () => await
EndpointHostHelpers
.GetUrlWithTargetHostAsync(null!));