Sisk

Interface

IRequestHandler

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

Represents an interface that is executed before a request.

C#
public interface IRequestHandler

Remarks #

A single request handler instance is shared by every request that it handles, including concurrent requests. Request handlers must not store individual request state in their own fields or properties, as it would leak between requests. Store per-request values in RequestBag instead.

Properties #

NameDescription
ExecutionModeGets or sets when this IRequestHandler should run.

Methods #

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

Type to search the documentation and the API reference.