Method AddEnumAdapter
- Namespace
- MVVrus.AspNetCore.ActiveSession.StdRunner
- Assembly
- MVVrus.AspNetCore.ActiveSession.dll
AddEnumAdapter<TItem>(IServiceCollection)
Adds a runner factory to the application's DI container for EnumAdapterRunner<TItem>.
public static IServiceCollection AddEnumAdapter<TItem>(this IServiceCollection Services)
Parameters
Services
IServiceCollectionIServiceCollection implementation to be used to configure an application service container
Returns
- IServiceCollection
Value of the Services param, this value is used to facilitate call chaining.
Type Parameters
TItem
Type of objects in a sequence (IEnumerable<TItem>) for which the adapter to be created.
Remarks
AddEnumAdapter<TItem>(IServiceCollection, Action<ActiveSessionOptions>?)
Adds a runner factory to the application's DI container for EnumAdapterRunner<TItem>.
public static IServiceCollection AddEnumAdapter<TItem>(this IServiceCollection Services, Action<ActiveSessionOptions>? Configurator)
Parameters
Services
IServiceCollectionIServiceCollection implementation to be used to configure an application service container
Configurator
Action<ActiveSessionOptions>The delegate used to configure additional options (of type ActiveSessionOptions) for the ActiveSession library features. May be null, if no additional configuraion to be performed
Returns
- IServiceCollection
Value of the Services param, this value is used to facilitate call chaining.
Type Parameters
TItem
Type of objects in a sequence (IEnumerable<TItem>) for which the adapter to be created.