Method Create
- Namespace
- MVVrus.AspNetCore.ActiveSession
- Assembly
- MVVrus.AspNetCore.ActiveSession.dll
Create(TRequest, IServiceProvider, RunnerId, string?)
IRunner<TResult>? Create(TRequest Request, IServiceProvider Services, RunnerId RunnerId, string? TraceIdentifier = null)
Parameters
RequestTRequestThe runner object initialization data.
ServicesIServiceProviderA IServiceProvider interface of a services container, which can be used for dependency injection while creating the runner object.
RunnerIdRunnerIdIdentifier (RunnerId) to be assigned to the runner created.
TraceIdentifierstringThe trace identifier of the request in which the method is called (for tracing purposes)
Returns
- IRunner<TResult>
A new runner object implementing IRunner<TResult> interface or null if the object cannot be created