Sisk

Method

Router.RegisterValueHandler<T>

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

RegisterValueHandler<T>(RouterActionHandlerCallback<T>) #

Register an type handling association to converting it to an HttpResponse object.

C#
public void RegisterValueHandler<T>(RouterActionHandlerCallback<T> actionHandler) where T : notnull

Parameters #

actionHandler RouterActionHandlerCallback<T>

The function that receives an object of the T and returns an HttpResponse response from the informed object.

Type Parameters #

T

Type to search the documentation and the API reference.