Method Execute
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Execute(IWriteBinding, CancellationToken)
Executes the operation.
public WriteConcernResult Execute(IWriteBinding binding, CancellationToken cancellationToken)
Parameters
binding
IWriteBindingThe binding.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- WriteConcernResult
The result of the operation.
Execute(RetryableWriteContext, CancellationToken)
Executes the first attempt.
public WriteConcernResult Execute(RetryableWriteContext context, CancellationToken cancellationToken)
Parameters
context
RetryableWriteContextThe context.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- WriteConcernResult
The result.