Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Servers.UrlHook

Summary

Encapsulates properties of a URL that can be mapped to a request handler using UrlMapping. This class is immutable.

Constructors

UrlHook(string domain = null, int? port = null, string path = null, bool specificDomain = false, bool specificPath = false, Protocols protocols = Protocols.All)
Initializes a new UrlHook.
UrlHook(string pathOrDomain, bool useDomain, bool specific = false, Protocols protocols = Protocols.All)

Instance methods

int Compares this hook to another one such that more specific hooks are sorted before a more generic hook that encompasses the specific one.
boolCompares mappings for equality.
bool
Equals(object obj)
  • Overrides: object.Equals(object)
int
  • Overrides: object.GetHashCode()
Computes a hash code suitable as a heuristic for the kind of equality defined by UrlHook.Equals(object).
string
  • Overrides: object.ToString()
Returns a debugging-friendly representation of this hook's match specification.

Instance properties

string Gets a value indicating what domain name the hook applies to. Returns null if it applies to all domains.
string Gets a value indicating what URL path the hook applies to. Returns null if it applies to all paths.
int?Gets a value indicating what port the hook applies to. Returns null if it applies to all ports.
ProtocolsGets a value indicating the protocol(s) to which the hook applies.
bool Gets a value indicating whether the hook applies to all subdomains of the domain specified by UrlHook.Domain (false) or the specific domain only (true).
bool Gets a value indicating whether the hook applies to all subpaths of the path specified by UrlHook.Path (false) or to the specific path only (true).