Method GetRunnerAsync
- Namespace
- MVVrus.AspNetCore.ActiveSession
- Assembly
- MVVrus.AspNetCore.ActiveSession.dll
GetRunnerAsync<TResult>(int, HttpContext, CancellationToken)
An asynchronous version of GetRunner<TResult>(int, HttpContext) method.
ValueTask<IRunner<TResult>?> GetRunnerAsync<TResult>(int RunnerNumber, HttpContext Context, CancellationToken CancellationToken = default)
Parameters
RunnerNumberint- A number (key) specifying the runner to search for
ContextHttpContext- Context of the HTTP request from handler of which the method is called
CancellationTokenCancellationTokenCancellation token that may be used to cancel this async operation
Returns
- ValueTask<IRunner<TResult>>
A task wrapping the existing runner (of type IRunner<TResult>) if any or null
Type Parameters
TResultType of the result, returned by the runner
Remarks
Context parameter is used here just for tracing purposes