IRouteHandler Interface¶
Defines a contract for a handler of a route.
- Namespace
Microsoft.AspNetCore.Routing
- Assemblies
- Microsoft.AspNetCore.Routing.Abstractions
Methods¶
-
GetRequestHandler
(Microsoft.AspNetCore.Http.HttpContext, Microsoft.AspNetCore.Routing.RouteData)¶ Gets a
Microsoft.AspNetCore.Http.RequestDelegate
to handle the request, based on the provided <em>routeData</em>.Arguments: - httpContext (Microsoft.AspNetCore.Http.HttpContext) – The
Microsoft.AspNetCore.Http.HttpContext
associated with the current request. - routeData (Microsoft.AspNetCore.Routing.RouteData) – The
Microsoft.AspNetCore.Routing.RouteData
associated with the current routing match.
Return type: Returns: A
Microsoft.AspNetCore.Http.RequestDelegate
, or <code>null</code> if the handler cannot handle this request.RequestDelegate GetRequestHandler(HttpContext httpContext, RouteData routeData)
- httpContext (Microsoft.AspNetCore.Http.HttpContext) – The
-