Method Create
Create(Func<HttpRequest, HttpContext, Task<HttpResponse?>>, RequestHandlerExecutionMode)
Gets an inline AsyncRequestHandler that resolves to the specified function.
public static AsyncRequestHandler Create(Func<HttpRequest, HttpContext, Task<HttpResponse?>> execute, RequestHandlerExecutionMode executionMode = RequestHandlerExecutionMode.BeforeResponse)
Parameters
executeFunc<HttpRequest, HttpContext, Task<HttpResponse>>The function that the AsyncRequestHandler will run.
executionModeRequestHandlerExecutionModeOptional. Determines where the request handler will be executed.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語