Table of Contents

Method Create

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

Create(Func<HttpRequest, HttpContext, HttpResponse?>, RequestHandlerExecutionMode)

Gets an inline RequestHandler that resolves to the specified function.

public static RequestHandler Create(Func<HttpRequest, HttpContext, HttpResponse?> execute, RequestHandlerExecutionMode executionMode = RequestHandlerExecutionMode.BeforeResponse)

Parameters

execute Func<HttpRequest, HttpContext, HttpResponse>

The function that the RequestHandler will run.

executionMode RequestHandlerExecutionMode

Optional. Determines where the request handler will be executed.

Returns

RequestHandler