Sisk

Class

AsyncRequestHandler

Namespace
Sisk.Core.Routing
Assembly
Sisk.Core.dll

Represents a class that implements IRequestHandler and its execution method is asynchronous.

C#
public abstract class AsyncRequestHandler : IRequestHandler

Inheritance #

object ← AsyncRequestHandler

Implements #

IRequestHandler

Inherited Members #

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
AsyncRequestHandler()

Properties #

NameDescription
ExecutionModeGets or sets when this IRequestHandler should run.

Methods #

NameDescription
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.

Type to search the documentation and the API reference.