EndpointHostHelpers
Classstaticnet10.0
Provides helper methods for validating localhost addresses.
namespace Aspire.Hosting.ApplicationModel;
public static class EndpointHostHelpers{ // ...}8 members
Methods8
Section titled Methodsbool 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".