Share via


IRouteHandler.GetRequestHandler(HttpContext, RouteData) Method

Definition

Gets a RequestDelegate to handle the request, based on the provided routeData.

public:
 Microsoft::AspNetCore::Http::RequestDelegate ^ GetRequestHandler(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Microsoft::AspNetCore::Routing::RouteData ^ routeData);
public Microsoft.AspNetCore.Http.RequestDelegate GetRequestHandler (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData);
abstract member GetRequestHandler : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.RouteData -> Microsoft.AspNetCore.Http.RequestDelegate
Public Function GetRequestHandler (httpContext As HttpContext, routeData As RouteData) As RequestDelegate

Parameters

httpContext
HttpContext

The HttpContext associated with the current request.

routeData
RouteData

The RouteData associated with the current routing match.

Returns

A RequestDelegate, or null if the handler cannot handle this request.

Applies to