Class RoutingModuleExtensions
Provides extension methods for RoutingModule.
Inherited Members
Namespace: EmbedIO.Routing
Syntax
public static class RoutingModuleExtensions
Methods
Handle(RoutingModule, HttpVerb, RouteMatcher, RouteHandlerCallback)
Adds a handler to a RoutingModule.
Declaration
public static RoutingModule Handle(this RoutingModule this, HttpVerb verb, RouteMatcher matcher, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| HttpVerb | verb | A HttpVerb constant representing the HTTP method
to associate with |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
See Also
Handle(RoutingModule, HttpVerb, RouteMatcher, SyncRouteHandlerCallback)
Adds a synchronous handler to a RoutingModule.
Declaration
public static RoutingModule Handle(this RoutingModule this, HttpVerb verb, RouteMatcher matcher, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| HttpVerb | verb | A HttpVerb constant representing the HTTP method
to associate with |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
See Also
Handle(RoutingModule, HttpVerb, String, RouteHandlerCallback)
Adds a handler to a RoutingModule.
Declaration
public static RoutingModule Handle(this RoutingModule this, HttpVerb verb, string route, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| HttpVerb | verb | A HttpVerb constant representing the HTTP method
to associate with |
| String | route | The route to match URL paths against. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
See Also
Handle(RoutingModule, HttpVerb, String, SyncRouteHandlerCallback)
Adds a synchronous handler to a RoutingModule.
Declaration
public static RoutingModule Handle(this RoutingModule this, HttpVerb verb, string route, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| HttpVerb | verb | A HttpVerb constant representing the HTTP method
to associate with |
| String | route | The route to match URL paths against. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
See Also
Handle(RoutingModule, HttpVerb, String, Boolean, RouteHandlerCallback)
Adds a handler to a RoutingModule.
Declaration
public static RoutingModule Handle(this RoutingModule this, HttpVerb verb, string route, bool isBaseRoute, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| HttpVerb | verb | A HttpVerb constant representing the HTTP method
to associate with |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
See Also
Handle(RoutingModule, HttpVerb, String, Boolean, SyncRouteHandlerCallback)
Adds a synchronous handler to a RoutingModule.
Declaration
public static RoutingModule Handle(this RoutingModule this, HttpVerb verb, string route, bool isBaseRoute, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| HttpVerb | verb | A HttpVerb constant representing the HTTP method
to associate with |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
See Also
OnAny(RoutingModule, RouteMatcher, RouteHandlerCallback)
Associates all requests matching a route to a handler.
Declaration
public static RoutingModule OnAny(this RoutingModule this, RouteMatcher matcher, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnAny(RoutingModule, RouteMatcher, SyncRouteHandlerCallback)
Associates all requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnAny(this RoutingModule this, RouteMatcher matcher, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnAny(RoutingModule, String, RouteHandlerCallback)
Associates all requests matching a route to a handler.
Declaration
public static RoutingModule OnAny(this RoutingModule this, string route, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnAny(RoutingModule, String, SyncRouteHandlerCallback)
Associates all requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnAny(this RoutingModule this, string route, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnAny(RoutingModule, String, Boolean, RouteHandlerCallback)
Associates all requests matching a route to a handler.
Declaration
public static RoutingModule OnAny(this RoutingModule this, string route, bool isBaseRoute, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnAny(RoutingModule, String, Boolean, SyncRouteHandlerCallback)
Associates all requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnAny(this RoutingModule this, string route, bool isBaseRoute, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnDelete(RoutingModule, RouteMatcher, RouteHandlerCallback)
Associates DELETE requests matching a route to a handler.
Declaration
public static RoutingModule OnDelete(this RoutingModule this, RouteMatcher matcher, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnDelete(RoutingModule, RouteMatcher, SyncRouteHandlerCallback)
Associates DELETE requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnDelete(this RoutingModule this, RouteMatcher matcher, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnDelete(RoutingModule, String, RouteHandlerCallback)
Associates DELETE requests matching a route to a handler.
Declaration
public static RoutingModule OnDelete(this RoutingModule this, string route, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnDelete(RoutingModule, String, SyncRouteHandlerCallback)
Associates DELETE requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnDelete(this RoutingModule this, string route, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnDelete(RoutingModule, String, Boolean, RouteHandlerCallback)
Associates DELETE requests matching a route to a handler.
Declaration
public static RoutingModule OnDelete(this RoutingModule this, string route, bool isBaseRoute, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnDelete(RoutingModule, String, Boolean, SyncRouteHandlerCallback)
Associates DELETE requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnDelete(this RoutingModule this, string route, bool isBaseRoute, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnGet(RoutingModule, RouteMatcher, RouteHandlerCallback)
Associates GET requests matching a route to a handler.
Declaration
public static RoutingModule OnGet(this RoutingModule this, RouteMatcher matcher, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnGet(RoutingModule, RouteMatcher, SyncRouteHandlerCallback)
Associates GET requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnGet(this RoutingModule this, RouteMatcher matcher, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnGet(RoutingModule, String, RouteHandlerCallback)
Associates GET requests matching a route to a handler.
Declaration
public static RoutingModule OnGet(this RoutingModule this, string route, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnGet(RoutingModule, String, SyncRouteHandlerCallback)
Associates GET requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnGet(this RoutingModule this, string route, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnGet(RoutingModule, String, Boolean, RouteHandlerCallback)
Associates GET requests matching a route to a handler.
Declaration
public static RoutingModule OnGet(this RoutingModule this, string route, bool isBaseRoute, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnGet(RoutingModule, String, Boolean, SyncRouteHandlerCallback)
Associates GET requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnGet(this RoutingModule this, string route, bool isBaseRoute, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnHead(RoutingModule, RouteMatcher, RouteHandlerCallback)
Associates HEAD requests matching a route to a handler.
Declaration
public static RoutingModule OnHead(this RoutingModule this, RouteMatcher matcher, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnHead(RoutingModule, RouteMatcher, SyncRouteHandlerCallback)
Associates HEAD requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnHead(this RoutingModule this, RouteMatcher matcher, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnHead(RoutingModule, String, RouteHandlerCallback)
Associates HEAD requests matching a route to a handler.
Declaration
public static RoutingModule OnHead(this RoutingModule this, string route, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnHead(RoutingModule, String, SyncRouteHandlerCallback)
Associates HEAD requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnHead(this RoutingModule this, string route, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnHead(RoutingModule, String, Boolean, RouteHandlerCallback)
Associates HEAD requests matching a route to a handler.
Declaration
public static RoutingModule OnHead(this RoutingModule this, string route, bool isBaseRoute, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnHead(RoutingModule, String, Boolean, SyncRouteHandlerCallback)
Associates HEAD requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnHead(this RoutingModule this, string route, bool isBaseRoute, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnOptions(RoutingModule, RouteMatcher, RouteHandlerCallback)
Associates OPTIONS requests matching a route to a handler.
Declaration
public static RoutingModule OnOptions(this RoutingModule this, RouteMatcher matcher, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnOptions(RoutingModule, RouteMatcher, SyncRouteHandlerCallback)
Associates OPTIONS requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnOptions(this RoutingModule this, RouteMatcher matcher, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnOptions(RoutingModule, String, RouteHandlerCallback)
Associates OPTIONS requests matching a route to a handler.
Declaration
public static RoutingModule OnOptions(this RoutingModule this, string route, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnOptions(RoutingModule, String, SyncRouteHandlerCallback)
Associates OPTIONS requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnOptions(this RoutingModule this, string route, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnOptions(RoutingModule, String, Boolean, RouteHandlerCallback)
Associates OPTIONS requests matching a route to a handler.
Declaration
public static RoutingModule OnOptions(this RoutingModule this, string route, bool isBaseRoute, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnOptions(RoutingModule, String, Boolean, SyncRouteHandlerCallback)
Associates OPTIONS requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnOptions(this RoutingModule this, string route, bool isBaseRoute, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPatch(RoutingModule, RouteMatcher, RouteHandlerCallback)
Associates PATCH requests matching a route to a handler.
Declaration
public static RoutingModule OnPatch(this RoutingModule this, RouteMatcher matcher, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPatch(RoutingModule, RouteMatcher, SyncRouteHandlerCallback)
Associates PATCH requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnPatch(this RoutingModule this, RouteMatcher matcher, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPatch(RoutingModule, String, RouteHandlerCallback)
Associates PATCH requests matching a route to a handler.
Declaration
public static RoutingModule OnPatch(this RoutingModule this, string route, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPatch(RoutingModule, String, SyncRouteHandlerCallback)
Associates PATCH requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnPatch(this RoutingModule this, string route, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPatch(RoutingModule, String, Boolean, RouteHandlerCallback)
Associates PATCH requests matching a route to a handler.
Declaration
public static RoutingModule OnPatch(this RoutingModule this, string route, bool isBaseRoute, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPatch(RoutingModule, String, Boolean, SyncRouteHandlerCallback)
Associates PATCH requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnPatch(this RoutingModule this, string route, bool isBaseRoute, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPost(RoutingModule, RouteMatcher, RouteHandlerCallback)
Associates POST requests matching a route to a handler.
Declaration
public static RoutingModule OnPost(this RoutingModule this, RouteMatcher matcher, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPost(RoutingModule, RouteMatcher, SyncRouteHandlerCallback)
Associates POST requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnPost(this RoutingModule this, RouteMatcher matcher, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPost(RoutingModule, String, RouteHandlerCallback)
Associates POST requests matching a route to a handler.
Declaration
public static RoutingModule OnPost(this RoutingModule this, string route, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPost(RoutingModule, String, SyncRouteHandlerCallback)
Associates POST requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnPost(this RoutingModule this, string route, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPost(RoutingModule, String, Boolean, RouteHandlerCallback)
Associates POST requests matching a route to a handler.
Declaration
public static RoutingModule OnPost(this RoutingModule this, string route, bool isBaseRoute, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPost(RoutingModule, String, Boolean, SyncRouteHandlerCallback)
Associates POST requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnPost(this RoutingModule this, string route, bool isBaseRoute, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPut(RoutingModule, RouteMatcher, RouteHandlerCallback)
Associates PUT requests matching a route to a handler.
Declaration
public static RoutingModule OnPut(this RoutingModule this, RouteMatcher matcher, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPut(RoutingModule, RouteMatcher, SyncRouteHandlerCallback)
Associates PUT requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnPut(this RoutingModule this, RouteMatcher matcher, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| RouteMatcher | matcher | The RouteMatcher used to match URL paths. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPut(RoutingModule, String, RouteHandlerCallback)
Associates PUT requests matching a route to a handler.
Declaration
public static RoutingModule OnPut(this RoutingModule this, string route, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPut(RoutingModule, String, SyncRouteHandlerCallback)
Associates PUT requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnPut(this RoutingModule this, string route, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPut(RoutingModule, String, Boolean, RouteHandlerCallback)
Associates PUT requests matching a route to a handler.
Declaration
public static RoutingModule OnPut(this RoutingModule this, string route, bool isBaseRoute, RouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| RouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
OnPut(RoutingModule, String, Boolean, SyncRouteHandlerCallback)
Associates PUT requests matching a route to a synchronous handler.
Declaration
public static RoutingModule OnPut(this RoutingModule this, string route, bool isBaseRoute, SyncRouteHandlerCallback handler)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| String | route | The route to match URL paths against. |
| Boolean | isBaseRoute | true if |
| SyncRouteHandlerCallback | handler | A callback used to handle matching contexts. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|
WithHandlersFrom(RoutingModule, Object)
Adds handlers, associating them with HTTP method / route pairs by means of RouteAttribute attributes.
See AddFrom(Object) for further information.
Declaration
public static RoutingModule WithHandlersFrom(this RoutingModule this, object target)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingModule | this | The RoutingModule on which this method is called. |
| Object | target | Where to look for compatible handlers. |
Returns
| Type | Description |
|---|---|
| RoutingModule |
|