Method GetSequenceRunner
- Namespace
- MVVrus.AspNetCore.ActiveSession.StdRunner
- Assembly
- MVVrus.AspNetCore.ActiveSession.dll
GetSequenceRunner<TItem>(IActiveSession, int, HttpContext)
Searches for an existing runner with result type IEnumerable<TItem> i.e. instance of class EnumAdapterRunner<TItem> or AsyncEnumAdapterRunner<TItem>.
public static IRunner<IEnumerable<TItem>>? GetSequenceRunner<TItem>(this IActiveSession Session, int RunnerNumber, HttpContext Context)
Parameters
Session
IActiveSession- An interface of Active Session object to work with.
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
Returns
- IRunner<IEnumerable<TItem>>
The runner with specified number and result type (IRunner<TResult>) if such a runner exists or null
Type Parameters
TItem
Type of items of a sequence (IEnumerable<TItem> interface) that a background process of the runner returns.