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
TResultThe type of the result.
Methods
Execute(RetryableReadContext, CancellationToken)
Executes the first attempt.
TResult Execute(RetryableReadContext context, CancellationToken cancellationToken)
Parameters
contextRetryableReadContextThe context.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- TResult
The result.
ExecuteAsync(RetryableReadContext, CancellationToken)
Executes the first attempt.
Task<TResult> ExecuteAsync(RetryableReadContext context, CancellationToken cancellationToken)
Parameters
contextRetryableReadContextThe context.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<TResult>
The result.