Constructor RunnerBase
- Namespace
- MVVrus.AspNetCore.ActiveSession
- Assembly
- MVVrus.AspNetCore.ActiveSession.dll
RunnerBase(CancellationTokenSource?, bool, RunnerId, ILogger?)
Protected. A RunnerBase instance constructor intended to be used by decendent classes constructors.
protected RunnerBase(CancellationTokenSource? CompletionTokenSource, bool PassCtsOwnership, RunnerId RunnerId = default, ILogger? Logger = null)
Parameters
CompletionTokenSource
CancellationTokenSourceExternal 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.
PassCtsOwnership
boolThis value indicates will the instance to be created be responsible for disposing an external CompletionToken source if it was passed by
CompletionTokenSource
.RunnerId
RunnerIdThe identifier to be assigned to the instance to be created.
Logger
ILoggerThe ILogger instance used to write log messages from the instance to be created.
Remarks
Because the class is intendend to be used as a base for deescendent classes, it's constructor has access level protected, not public.