Table of Contents

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 TRequest

The runner object initialization data.

Services IServiceProvider

A IServiceProvider interface of a services container, which can be used for dependency injection while creating the runner object.

RunnerId RunnerId

Identifier (RunnerId) to be assigned to the runner created.

TraceIdentifier string

The 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