Method GetNonTypedRunnerAsync
- Namespace
- MVVrus.AspNetCore.ActiveSession
- Assembly
- MVVrus.AspNetCore.ActiveSession.dll
GetNonTypedRunnerAsync(int, HttpContext, CancellationToken)
An asynchronous version of GetNonTypedRunner(int, HttpContext) method.
ValueTask<IRunner?> GetNonTypedRunnerAsync(int RunnerNumber, HttpContext Context, CancellationToken CancellationToken = default)
Parameters
RunnerNumber
int- A number (key) specifying the runner to search for
Context
HttpContext- Context of the HTTP request from handler of which the method is called
CancellationToken
CancellationToken- Cancellation token that may be used to cancel this async operation
Returns
- ValueTask<IRunner>
A task wrapping a base, non-typed interface of the existing runner (of type IRunner) if any or null
Remarks
Context
parameter is used here just for tracing purposes