Method Create
Create(Func<HttpRequest, HttpContext, HttpResponse?>, RequestHandlerExecutionMode)
Gets an inline RequestHandler that resolves to the specified function.
public static RequestHandler Create(Func<HttpRequest, HttpContext, HttpResponse?> execute, RequestHandlerExecutionMode executionMode = RequestHandlerExecutionMode.BeforeResponse)
Parameters
execute
Func<HttpRequest, HttpContext, HttpResponse>The function that the RequestHandler will run.
executionMode
RequestHandlerExecutionModeOptional. Determines where the request handler will be executed.