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