Table of Contents

Class AsyncOperationFactory<TOperation, TRequest>

Namespace
Olve.Operations
Assembly
Olve.Operations.dll

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

public class AsyncOperationFactory<TOperation, TRequest> where TOperation : IAsyncOperation<TRequest>

Type Parameters

TOperation

The type of the asynchronous operation to create.

TRequest

The type of the request handled by the operation.

Inheritance
AsyncOperationFactory<TOperation, TRequest>
Inherited Members

Constructors

AsyncOperationFactory(IServiceProvider)

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

public AsyncOperationFactory(IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

The IServiceProvider used to resolve dependencies for the operation.

Methods

Build()

Creates a new instance of the specified asynchronous operation type.

public TOperation Build()

Returns

TOperation

A new instance of TOperation.