Interface IExecutableInRetryableReadContext<TResult>
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents an operation (that may or may not be retryable) that can be executed in a retryable read context.
public interface IExecutableInRetryableReadContext<TResult>
Type Parameters
TResult
The type of the result.
Methods
Execute(RetryableReadContext, CancellationToken)
Executes the first attempt.
TResult Execute(RetryableReadContext context, CancellationToken cancellationToken)
Parameters
context
RetryableReadContextThe context.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- TResult
The result.
ExecuteAsync(RetryableReadContext, CancellationToken)
Executes the first attempt.
Task<TResult> ExecuteAsync(RetryableReadContext context, CancellationToken cancellationToken)
Parameters
context
RetryableReadContextThe context.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<TResult>
The result.