EndpointHostHelpers
Classstaticnet10.0
Provides helper methods for validating localhost addresses and for resolving endpoint URLs against a configured target host.
namespace Aspire.Hosting.ApplicationModel;
public static class EndpointHostHelpers{ // ...}9 members
Methods9
Section titled MethodsValueTask<string?> Gets the URL of the endpoint, adjusting for localhost TLD if configured.
bool Determines whether the specified host ends with ".dev.localhost".
IsDevLocalhostTld(Uri?)staticbool Determines whether the specified URI uses a host that ends with ".dev.localhost".
bool Determines whether the specified host is "localhost" or uses the ".localhost" top-level domain.
bool Determines whether the specified URI uses a host that is "localhost" or ends with ".localhost".
IsLocalhostTld(Uri?)staticbool Determines whether the specified URI uses a host that is "localhost".