Table of Contents

Interface IAsyncOperation<TRequest, TResult>

Namespace
Olve.Operations
Assembly
Olve.Operations.dll

Represents an asynchronous operation that takes a request and returns a result.

public interface IAsyncOperation<in TRequest, TResult>

Type Parameters

TRequest

The type of the request.

TResult

The type of the result.

Methods

ExecuteAsync(TRequest, CancellationToken)

Executes the operation asynchronously.

Task<Result<TResult>> ExecuteAsync(TRequest request, CancellationToken ct = default)

Parameters

request TRequest

The request to execute the operation with.

ct CancellationToken

The cancellation token to cancel the operation.

Returns

Task<Result<TResult>>

A task that represents the asynchronous operation.