Class AsyncOperationFactory<TOperation, TRequest, TResponse>
- Namespace
- Olve.Operations
- Assembly
- Olve.Operations.dll
A factory for creating instances of asynchronous operations that implement IAsyncOperation<TRequest, TResult>.
public class AsyncOperationFactory<TOperation, TRequest, TResponse> where TOperation : IAsyncOperation<TRequest, TResponse>
Type Parameters
TOperationThe type of the asynchronous operation to create.
TRequestThe type of the request handled by the operation.
TResponseThe type of the response returned by the operation.
- Inheritance
-
AsyncOperationFactory<TOperation, TRequest, TResponse>
- Inherited Members
Constructors
AsyncOperationFactory(IServiceProvider)
A factory for creating instances of asynchronous operations that implement IAsyncOperation<TRequest, TResult>.
public AsyncOperationFactory(IServiceProvider serviceProvider)
Parameters
serviceProviderIServiceProviderThe 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.