Summary
Allows you to specify mappings that map URLs to HTTP request handlers.
Remarks
Maintains a collection of
UrlMapping objects, making sure that they are always enumerated in a
sensible order and ensuring that there are no duplicate hooks added in error. This class is thread-safe except for
enumeration; to enumerate the mappings safely, you must hold a lock on the instance until the enumeration is
completed.
Constructors
Instance methods
void | | Adds the specified mapping to this collection. |
void | |
void | |
Efficiently adds multiple mappings to this collection. Use this method whenever adding multiple mappings at
once. |
void | | Removes all mappings from this collection. |
bool | | Determines whether a mapping with the same match specification is present in this collection. |
void | CopyTo(UrlMapping[] array, int arrayIndex) | Throws NotImplementedException. |
IEnumerator<UrlMapping> | |
Enumerates the mappings. To maintain thread safety, you must hold a lock on UrlResolver.Locker until the
enumeration is finished. |
HttpResponse | |
Handles an HTTP request by delegating it to the appropriate handler according to the request’s URL. |
bool | |
Removes a mapping that is equal to the specified mapping. |
int | |
Removes all mappings with a hook equivalent to the specified one. |
Instance properties
int | | Gets a value indicating the number of mappings in this collection. |
bool | | Returns false. |
object | | Take a lock on this object to perform multiple add/remove/clear operations atomically. |