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
Request
TRequestThe runner object initialization data.
Services
IServiceProviderA IServiceProvider interface of a services container, which can be used for dependency injection while creating the runner object.
RunnerId
RunnerIdIdentifier (RunnerId) to be assigned to the runner created.
TraceIdentifier
stringThe 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