Constructor AsyncEnumAdapterRunner
- Namespace
- MVVrus.AspNetCore.ActiveSession.StdRunner
- Assembly
- MVVrus.AspNetCore.ActiveSession.dll
AsyncEnumAdapterRunner(IAsyncEnumerable<TItem>, RunnerId, IOptionsSnapshot<ActiveSessionOptions>, ILogger<AsyncEnumAdapterRunner<TItem>>?)
[ActiveSessionConstructor(true)]
public AsyncEnumAdapterRunner(IAsyncEnumerable<TItem> Source, RunnerId RunnerId, IOptionsSnapshot<ActiveSessionOptions> Options, ILogger<AsyncEnumAdapterRunner<TItem>>? Logger)
Parameters
Source
IAsyncEnumerable<TItem>- An async-enumerable for which the instance to be created will serve as an adapter.
RunnerId
RunnerId- The identifier to be assigned to the instance to be created.
Options
IOptionsSnapshot<ActiveSessionOptions>- Presents access to a configuration object via the options pattern
Logger
ILogger<AsyncEnumAdapterRunner<TItem>>- The ILogger instance used to write log messages from the instance to be created.
Exceptions
AsyncEnumAdapterRunner(AsyncEnumAdapterParams<TItem>, RunnerId, IOptionsSnapshot<ActiveSessionOptions>, ILogger<AsyncEnumAdapterRunner<TItem>>?)
[ActiveSessionConstructor(true)]
public AsyncEnumAdapterRunner(AsyncEnumAdapterParams<TItem> Params, RunnerId RunnerId, IOptionsSnapshot<ActiveSessionOptions> Options, ILogger<AsyncEnumAdapterRunner<TItem>>? Logger)
Parameters
Params
AsyncEnumAdapterParams<TItem>A structure that contains a refernce to the source async-enumerable and additional parameters.
RunnerId
RunnerId- The identifier to be assigned to the instance to be created.
Options
IOptionsSnapshot<ActiveSessionOptions>- Presents access to a configuration object via the options pattern
Logger
ILogger<AsyncEnumAdapterRunner<TItem>>- The ILogger instance used to write log messages from the instance to be created.
Exceptions
AsyncEnumAdapterRunner(IAsyncEnumerable<TItem>, bool, CancellationTokenSource?, bool, int?, int?, bool, RunnerId, IOptionsSnapshot<ActiveSessionOptions>, ILogger?)
protected AsyncEnumAdapterRunner(IAsyncEnumerable<TItem> Source, bool PassSourceOnership, CancellationTokenSource? CompletionTokenSource, bool PassCtsOwnership, int? DefaultAdvance, int? EnumAheadLimit, bool StartInConstructor, RunnerId RunnerId, IOptionsSnapshot<ActiveSessionOptions> Options, ILogger? Logger)
Parameters
Source
IAsyncEnumerable<TItem>An async-enumerable for which the instance to be created will serve as an adapter.
PassSourceOnership
boolFlag showing that the instance to be created will be responsible for disposing the
Source
value passed to it.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.
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
. DefaultAdvance
int?- Default value for the first parameter (Advance) for GetRequiredAsync method of the instance to be created.
EnumAheadLimit
int?- Maximum number of items fetched in background ahead of time in the instance to be created.
StartInConstructor
boolSet to true to start background processing in the constructor.
RunnerId
RunnerId- The identifier to be assigned to the instance to be created.
Options
IOptionsSnapshot<ActiveSessionOptions>- Presents access to a configuration object via the options pattern
Logger
ILogger- The ILogger instance used to write log messages from the instance to be created.