EndpointHostHelpers
Class static net10.0
Provides helper methods for validating localhost addresses.
namespace Aspire.Hosting.ApplicationModel;
public static class EndpointHostHelpers{ // ...} 8 members
Methods8
Section titled MethodsIsDevLocalhostTld(string?)staticbool 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".
IsLocalhost(string?)staticbool Determines whether the specified host is "localhost".
IsLocalhost(Uri?)staticbool Determines whether the specified URI uses a host that is "localhost".
IsLocalhostOrLocalhostTld(string?)staticbool Determines whether the specified host is "localhost" or uses the ".localhost" top-level domain.
IsLocalhostOrLocalhostTld(Uri?)staticbool Determines whether the specified URI uses a host that is "localhost" or ends with ".localhost".
IsLocalhostTld(string?)staticbool Determines whether the specified host ends with ".localhost".
IsLocalhostTld(Uri?)staticbool Determines whether the specified URI uses a host that is "localhost".