Constructor EnumAdapterRunner
- Namespace
- MVVrus.AspNetCore.ActiveSession.StdRunner
- Assembly
- MVVrus.AspNetCore.ActiveSession.dll
EnumAdapterRunner(IEnumerable<TItem>, RunnerId, IOptionsSnapshot<ActiveSessionOptions>, ILogger<EnumAdapterRunner<TItem>>?)
[ActiveSessionConstructor(true)]
public EnumAdapterRunner(IEnumerable<TItem> Source, RunnerId RunnerId, IOptionsSnapshot<ActiveSessionOptions> Options, ILogger<EnumAdapterRunner<TItem>>? Logger)
Parameters
SourceIEnumerable<TItem>- An enumerable for which the instance to be created will serve as an adapter.
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<EnumAdapterRunner<TItem>>- The ILogger instance used to write log messages from the instance to be created.
Exceptions
EnumAdapterRunner(EnumAdapterParams<TItem>, RunnerId, IOptionsSnapshot<ActiveSessionOptions>, ILogger<EnumAdapterRunner<TItem>>?)
[ActiveSessionConstructor(true)]
public EnumAdapterRunner(EnumAdapterParams<TItem> Params, RunnerId RunnerId, IOptionsSnapshot<ActiveSessionOptions> Options, ILogger<EnumAdapterRunner<TItem>>? Logger)
Parameters
ParamsEnumAdapterParams<TItem>A structure that contains a refernce to the source enumerable and additional parameters.
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<EnumAdapterRunner<TItem>>- The ILogger instance used to write log messages from the instance to be created.
Exceptions
EnumAdapterRunner(IEnumerable<TItem>, bool, CancellationTokenSource?, bool, int?, int?, bool, RunnerId, IOptionsSnapshot<ActiveSessionOptions>, ILogger?)
protected EnumAdapterRunner(IEnumerable<TItem> Source, bool PassSourceOnership, CancellationTokenSource? CompletionTokenSource, bool PassCtsOwnership, int? DefaultAdvance, int? EnumAheadLimit, bool StartInConstructor, RunnerId RunnerId, IOptionsSnapshot<ActiveSessionOptions> Options, ILogger? Logger)
Parameters
SourceIEnumerable<TItem>An enumerable for which the instance to be created will serve as an adapter.
PassSourceOnershipboolFlag showing that the instance to be created will be responsible for disposing the
Sourcevalue passed to it.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.
StartInConstructorboolSet 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.