Method GetTimeSeriesRunner
- Namespace
- MVVrus.AspNetCore.ActiveSession.StdRunner
- Assembly
- MVVrus.AspNetCore.ActiveSession.dll
GetTimeSeriesRunner<TResult>(IActiveSession, int, HttpContext)
Searches for an existing runner with result type IEnumerable<(DateTime, TResult)> i.e. instance of class TimeSeriesRunner<TResult>.
public static IRunner<IEnumerable<(DateTime, TResult)>>? GetTimeSeriesRunner<TResult>(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<(DateTime, TResult)>>
The runner with specified number and result type (IRunner<TResult>) if such a runner exists or null
Type Parameters
TResult
Type of the measured values in the series. They are returned as "measured value" parts of pairs ("time of measurement", "measured value") composing the result sequence of the runner. .