Method CreateRunner
- Namespace
- MVVrus.AspNetCore.ActiveSession
- Assembly
- MVVrus.AspNetCore.ActiveSession.dll
CreateRunner<TRequest, TResult>(TRequest, HttpContext)
A method used to create a new runner
KeyedRunner<TResult> CreateRunner<TRequest, TResult>(TRequest Request, HttpContext Context)
Parameters
Request
TRequestData to be passed as a parameter to the runner's constructor to create the runner.
Context
HttpContextContext of the HTTP request from a handler of which the method is called.
Returns
- KeyedRunner<TResult>
A structure that contains the reference to the new runner and its number within the active session.
Type Parameters
TRequest
Type of the data used to create a new runner.
TResult
Type of the result, returned by the runner.
Remarks
Context
parameter is used here just for tracing purposes