Class AsyncRequestHandler
Represents a class that implements IRequestHandler and its execution method is asynchronous.
public abstract class AsyncRequestHandler : IRequestHandler
- Inheritance
-
AsyncRequestHandler
- Implements
- Inherited Members
Constructors
Properties
- ExecutionMode
Gets or sets when this RequestHandler should run.
Methods
- Create(Func<HttpRequest, HttpContext, Task<HttpResponse?>>, RequestHandlerExecutionMode)
Gets an inline AsyncRequestHandler that resolves to the specified function.
- ExecuteAsync(HttpRequest, HttpContext)
This method is called by the Router before executing a request when the Route instantiates an object that implements this interface. If it returns a HttpResponse object, the route action is not called and all execution of the route is stopped. If it returns "null", the execution is continued.
- Next()
Returns an null HttpResponse reference, which points to the next request handler or route action.