Constructor TimeSeriesParams
- Namespace
- MVVrus.AspNetCore.ActiveSession.StdRunner
- Assembly
- MVVrus.AspNetCore.ActiveSession.dll
TimeSeriesParams(Func<TResult>, TimeSpan, int?, int?, CancellationTokenSource?, int?, bool, bool)
Class containg parametrs to pass to the TimeSeriesRunner<TResult> class constructor.
public TimeSeriesParams(Func<TResult> Gauge, TimeSpan Interval, int? Count, int? DefaultAdvance = null, CancellationTokenSource? CompletionTokenSource = null, int? EnumAheadLimit = null, bool PassCtsOwnership = true, bool StartInConstructor = false)
Parameters
Gauge
Func<TResult>- A delegate that returns a result of a measurement.
Interval
TimeSpan- Requested interval between measurements.
Count
int?- Maximum number of measurements in the series. May be null to produce a series with unlimited number of measurements.
DefaultAdvance
int?- Default value for the first parameter (Advance) for GetRequiredAsync method of the instance to be created.
CompletionTokenSource
CancellationTokenSource- 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.
EnumAheadLimit
int?- Maximum number of items fetched in background ahead of time in the instance to be created.
PassCtsOwnership
bool-
This value indicates will the instance to be created be responsible for disposing an external CompletionToken source if it was passed by
CompletionTokenSource
. StartInConstructor
bool- Set to true to start background processing in the constructor.