Table of Contents

Class OperationFactory<TOperation, TRequest>

Namespace
Olve.Operations
Assembly
Olve.Operations.dll

A factory for creating instances of operations that implement IOperation<TRequest>.

public class OperationFactory<TOperation, TRequest> where TOperation : IOperation<TRequest>

Type Parameters

TOperation

The type of the operation to create.

TRequest

The type of the request handled by the operation.

Inheritance
OperationFactory<TOperation, TRequest>
Inherited Members

Constructors

OperationFactory(IServiceProvider)

A factory for creating instances of operations that implement IOperation<TRequest>.

public OperationFactory(IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

The IServiceProvider used to resolve dependencies for the operation.

Methods

Build()

Creates a new instance of the specified operation type.

public TOperation Build()

Returns

TOperation

A new instance of TOperation.