5 references to IsLocalhostTld
Aspire.Hosting (4)
ApplicationModel\EndpointHostHelpers.cs (3)
71return uri?.Host is not null && IsLocalhostTld(uri.Host); 96return IsLocalhost(host) || IsLocalhostTld(host); 145if (IsLocalhostTld(targetHost) && Uri.TryCreate(allocatedUrl, UriKind.Absolute, out var uri) && uri.IsLoopback)
Orchestrator\ApplicationOrchestrator.cs (1)
364if (additionalUrl is not null && EndpointHostHelpers.IsLocalhostTld(additionalUrl.Endpoint?.EndpointAnnotation.TargetHost))
Aspire.Hosting.Tests (1)
ApplicationModel\EndpointHostHelpersTests.cs (1)
75var result = EndpointHostHelpers.IsLocalhostTld(host);