Unosquare
    Show / Hide Table of Contents

    Class RoutingModuleExtensions

    Provides extension methods for RoutingModule.

    Inheritance
    Object
    RoutingModuleExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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 handler, or Any if handler can handle all HTTP methods.

    RouteMatcher matcher

    The RouteMatcher used to match URL paths.

    RouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    See Also
    Add(HttpVerb, RouteMatcher, RouteHandlerCallback)

    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 handler, or Any if handler can handle all HTTP methods.

    RouteMatcher matcher

    The RouteMatcher used to match URL paths.

    SyncRouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    See Also
    Add(HttpVerb, RouteMatcher, SyncRouteHandlerCallback)

    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 handler, or Any if handler can handle all HTTP methods.

    String route

    The route to match URL paths against.

    RouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    See Also
    Add(HttpVerb, RouteMatcher, RouteHandlerCallback)

    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 handler, or Any if handler can handle all HTTP methods.

    String route

    The route to match URL paths against.

    SyncRouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    See Also
    Add(HttpVerb, RouteMatcher, RouteHandlerCallback)

    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 handler, or Any if handler can handle all HTTP methods.

    String route

    The route to match URL paths against.

    Boolean isBaseRoute

    true if route is a base route; false if route is a terminal (non-base) route.

    RouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    See Also
    Add(HttpVerb, RouteMatcher, RouteHandlerCallback)

    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 handler, or Any if handler can handle all HTTP methods.

    String route

    The route to match URL paths against.

    Boolean isBaseRoute

    true if route is a base route; false if route is a terminal (non-base) route.

    SyncRouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    See Also
    Add(HttpVerb, RouteMatcher, RouteHandlerCallback)

    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

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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 route is a base route; false if route is a terminal (non-base) route.

    RouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    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 route is a base route; false if route is a terminal (non-base) route.

    SyncRouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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 route is a base route; false if route is a terminal (non-base) route.

    RouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    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 route is a base route; false if route is a terminal (non-base) route.

    SyncRouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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 route is a base route; false if route is a terminal (non-base) route.

    RouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    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 route is a base route; false if route is a terminal (non-base) route.

    SyncRouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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 route is a base route; false if route is a terminal (non-base) route.

    RouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    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 route is a base route; false if route is a terminal (non-base) route.

    SyncRouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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 route is a base route; false if route is a terminal (non-base) route.

    RouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    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 route is a base route; false if route is a terminal (non-base) route.

    SyncRouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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 route is a base route; false if route is a terminal (non-base) route.

    RouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    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 route is a base route; false if route is a terminal (non-base) route.

    SyncRouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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 route is a base route; false if route is a terminal (non-base) route.

    RouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    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 route is a base route; false if route is a terminal (non-base) route.

    SyncRouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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

    this with the handler added.

    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 route is a base route; false if route is a terminal (non-base) route.

    RouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    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 route is a base route; false if route is a terminal (non-base) route.

    SyncRouteHandlerCallback handler

    A callback used to handle matching contexts.

    Returns
    Type Description
    RoutingModule

    this with the handler added.

    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

    this with handlers added.

    Comments

    Back to top Copyright © 2017-2019 Unosquare