IRouteHandler Interface

Defines a contract for a handler of a route.

Namespace
Microsoft.AspNetCore.Routing
Assemblies
  • Microsoft.AspNetCore.Routing.Abstractions

Syntax

public interface IRouteHandler
interface Microsoft.AspNetCore.Routing.IRouteHandler

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:
Return type:

Microsoft.AspNetCore.Http.RequestDelegate

Returns:

A Microsoft.AspNetCore.Http.RequestDelegate, or <code>null</code> if the handler cannot handle this request.

RequestDelegate GetRequestHandler(HttpContext httpContext, RouteData routeData)