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
SourceIAsyncEnumerable<TItem>- An async-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<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
ParamsAsyncEnumAdapterParams<TItem>A structure that contains a refernce to the source async-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<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
SourceIAsyncEnumerable<TItem>An async-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.