Constructor EnumerableRunnerBase
- Namespace
- MVVrus.AspNetCore.ActiveSession
- Assembly
- MVVrus.AspNetCore.ActiveSession.dll
EnumerableRunnerBase(CancellationTokenSource?, bool, RunnerId, ILogger?, IOptionsSnapshot<ActiveSessionOptions>, int?, int?)
Constructor for a runner object to be used in descendent classes
protected EnumerableRunnerBase(CancellationTokenSource? CompletionTokenSource, bool PassCtsOwnership, RunnerId RunnerId, ILogger? Logger, IOptionsSnapshot<ActiveSessionOptions> Options, int? DefaultAdvance = null, int? QueueSize = null)
Parameters
CompletionTokenSourceCancellationTokenSourceExternal 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.
PassCtsOwnershipboolThis value indicates will the instance to be created be responsible for disposing an external CompletionToken source if it was passed by
CompletionTokenSource.RunnerIdRunnerIdThe identifier to be assigned to the instance to be created.
LoggerILoggerThe ILogger instance used to write log messages from the instance to be created.
OptionsIOptionsSnapshot<ActiveSessionOptions>Presents access to a configuration object via the options pattern
DefaultAdvanceint?Default value for the first parameter (Advance) for GetRequiredAsync method of the instance to be created.
QueueSizeint?Maximum number of items fetched in background ahead of time in the instance to be created.
Remarks
This constructor overload accepts default values for the DefaultAdvance and QueueSize parameters
from the configuration ActiveSessionOptions object passed via Options using the options pattern
EnumerableRunnerBase(CancellationTokenSource?, bool, RunnerId, ILogger?, int, int)
Constructor for a runner object to be used in descendent classes
protected EnumerableRunnerBase(CancellationTokenSource? CompletionTokenSource, bool PassCtsOwnership, RunnerId RunnerId, ILogger? Logger, int DefaultAdvance, int QueueSize)
Parameters
CompletionTokenSourceCancellationTokenSourceExternal 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.
PassCtsOwnershipboolThis value indicates will the instance to be created be responsible for disposing an external CompletionToken source if it was passed by
CompletionTokenSource.RunnerIdRunnerIdThe identifier to be assigned to the instance to be created.
LoggerILoggerThe ILogger instance used to write log messages from the instance to be created.
DefaultAdvanceintDefault value for the first parameter (Advance) for GetRequiredAsync method of the instance to be created.
QueueSizeintMaximum number of items fetched in background ahead of time in the instance to be created.
Remarks
This constructor overload does not accept any default values
for the DefaultAdvance and QueueSize parameters