Method AddSessionProcessRunner
- Namespace
- MVVrus.AspNetCore.ActiveSession.StdRunner
- Assembly
- MVVrus.AspNetCore.ActiveSession.dll
AddSessionProcessRunner<TResult>(IServiceCollection)
Adds a runner factory to the application's DI container for SessionProcessRunner<TResult>.
public static IServiceCollection AddSessionProcessRunner<TResult>(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
TResult
Type of the result returned by the running process.
Remarks
AddSessionProcessRunner<TResult>(IServiceCollection, Action<ActiveSessionOptions>?)
Adds a runner factory to the application's DI container for SessionProcessRunner<TResult>.
public static IServiceCollection AddSessionProcessRunner<TResult>(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
TResult
Type of the result returned by the running process.