Share via


EndpointHostHelpers Class

Definition

Provides helper methods for validating localhost addresses.

public static class EndpointHostHelpers
type EndpointHostHelpers = class
Public Class EndpointHostHelpers
Inheritance
EndpointHostHelpers

Methods

IsDevLocalhostTld(String)

Determines whether the specified host ends with ".dev.localhost".

IsDevLocalhostTld(Uri)

Determines whether the specified URI uses a host that ends with ".dev.localhost".

IsLocalhost(String)

Determines whether the specified host is "localhost".

IsLocalhost(Uri)

Determines whether the specified URI uses a host that is "localhost".

IsLocalhostOrLocalhostTld(String)

Determines whether the specified host is "localhost" or uses the ".localhost" top-level domain.

IsLocalhostOrLocalhostTld(Uri)

Determines whether the specified URI uses a host that is "localhost" or ends with ".localhost".

IsLocalhostTld(String)

Determines whether the specified host ends with ".localhost".

IsLocalhostTld(Uri)

Determines whether the specified URI uses a host that is "localhost".

Applies to