Constructor TimeSeriesRunner
- Namespace
- MVVrus.AspNetCore.ActiveSession.StdRunner
- Assembly
- MVVrus.AspNetCore.ActiveSession.dll
TimeSeriesRunner((Func<TResult>, TimeSpan), RunnerId, IOptionsSnapshot<ActiveSessionOptions>, ILogger<TimeSeriesRunner<TResult>>?)
[ActiveSessionConstructor(true)]
public TimeSeriesRunner((Func<TResult>, TimeSpan) SeriesParam, RunnerId RunnerId, IOptionsSnapshot<ActiveSessionOptions> Options, ILogger<TimeSeriesRunner<TResult>>? Logger)
Parameters
SeriesParam(Func<TResult>, TimeSpan)A pair of values. The first value is a delegate that returns a result of a measurement. The second value is a requested interval between measurements.
RunnerIdRunnerId- The identifier to be assigned to the instance to be created.
OptionsIOptionsSnapshot<ActiveSessionOptions>- Presents access to a configuration object via the options pattern
LoggerILogger<TimeSeriesRunner<TResult>>- The ILogger instance used to write log messages from the instance to be created.
TimeSeriesRunner((Func<TResult>, TimeSpan, int), RunnerId, IOptionsSnapshot<ActiveSessionOptions>, ILogger<TimeSeriesRunner<TResult>>?)
[ActiveSessionConstructor(true)]
public TimeSeriesRunner((Func<TResult>, TimeSpan, int) SeriesParam, RunnerId RunnerId, IOptionsSnapshot<ActiveSessionOptions> Options, ILogger<TimeSeriesRunner<TResult>>? Logger)
Parameters
SeriesParam(Func<TResult>, TimeSpan, int)A group of three values. The first value is a delegate that returns a result of a measurement. The second value is a requested interval between measurements. The third value is a maximum number of measurements to be performed.
RunnerIdRunnerId- The identifier to be assigned to the instance to be created.
OptionsIOptionsSnapshot<ActiveSessionOptions>- Presents access to a configuration object via the options pattern
LoggerILogger<TimeSeriesRunner<TResult>>- The ILogger instance used to write log messages from the instance to be created.
TimeSeriesRunner(TimeSeriesParams<TResult>, RunnerId, IOptionsSnapshot<ActiveSessionOptions>, ILogger<TimeSeriesRunner<TResult>>?)
[ActiveSessionConstructor(true)]
public TimeSeriesRunner(TimeSeriesParams<TResult> SeriesParam, RunnerId RunnerId, IOptionsSnapshot<ActiveSessionOptions> Options, ILogger<TimeSeriesRunner<TResult>>? Logger)
Parameters
SeriesParamTimeSeriesParams<TResult>A structure that contains parameters used for creation of the instance. Fields of the structure contains the same values as the paramemters of the protected constructor with the same names.
RunnerIdRunnerId- The identifier to be assigned to the instance to be created.
OptionsIOptionsSnapshot<ActiveSessionOptions>- Presents access to a configuration object via the options pattern
LoggerILogger<TimeSeriesRunner<TResult>>- The ILogger instance used to write log messages from the instance to be created.
TimeSeriesRunner(Func<TResult>, TimeSpan, int?, CancellationTokenSource?, bool, int?, int?, bool, RunnerId, IOptionsSnapshot<ActiveSessionOptions>, ILogger?)
protected TimeSeriesRunner(Func<TResult> Gauge, TimeSpan Interval, int? Count, CancellationTokenSource? CompletionTokenSource, bool PassCtsOwnership, int? DefaultAdvance, int? EnumAheadLimit, bool StartInConstructor, RunnerId RunnerId, IOptionsSnapshot<ActiveSessionOptions> Options, ILogger? Logger)
Parameters
GaugeFunc<TResult>A delegate that returns a result of a measurement.
IntervalTimeSpanRequested interval between measurements.
Countint?Maximum number of measurements in the series. May be null to produce a series with unlimited number of measurements.
CompletionTokenSourceCancellationTokenSource- External source for a value of the CompletionToken property. If it is null (default value), a new CancellationTokenSource will be used as the source in the instance to be created.
PassCtsOwnershipbool-
This value indicates will the instance to be created be responsible for disposing an external CompletionToken source if it was passed by
CompletionTokenSource. DefaultAdvanceint?- Default value for the first parameter (Advance) for GetRequiredAsync method of the instance to be created.
EnumAheadLimitint?- Maximum number of items fetched in background ahead of time in the instance to be created.
StartInConstructorbool- Set to true to start background processing in the constructor.
RunnerIdRunnerId- The identifier to be assigned to the instance to be created.
OptionsIOptionsSnapshot<ActiveSessionOptions>- Presents access to a configuration object via the options pattern
LoggerILogger- The ILogger instance used to write log messages from the instance to be created.