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. |
|
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. |
bool | | Compares mappings for equality. |
bool | |
int | |
Computes a hash code suitable as a heuristic for the kind of equality defined by UrlHook.Equals(object). |
string | | 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. |
Protocols | | Gets 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 ). |