Table of Contents

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

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<TResult>>

A task wrapping the existing runner (of type IRunner<TResult>) if any or null

Type Parameters

TResult

Type of the result, returned by the runner

Remarks

Context parameter is used here just for tracing purposes