Class
AsyncRequestHandler
Represents a class that implements IRequestHandler and its execution method is asynchronous.
public abstract class AsyncRequestHandler : IRequestHandlerInheritance #
Implements #
Inherited Members #
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| AsyncRequestHandler() |
Properties #
| Name | Description |
|---|---|
| ExecutionMode | Gets or sets when this IRequestHandler should run. |
Methods #
| Name | Description |
|---|---|
| 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. |