Table of Contents

Method Execute

Namespace
MongoDB.Driver.Core.Operations
Assembly
MongoDB.Driver.Core.dll

Execute(IWriteBinding, CancellationToken)

Executes the operation.

public TResult Execute(IWriteBinding binding, CancellationToken cancellationToken)

Parameters

binding IWriteBinding

The binding.

cancellationToken CancellationToken

The cancellation token.

Returns

TResult

The result of the operation.

Execute(RetryableWriteContext, CancellationToken)

Executes the first attempt.

public TResult Execute(RetryableWriteContext context, CancellationToken cancellationToken)

Parameters

context RetryableWriteContext

The context.

cancellationToken CancellationToken

The cancellation token.

Returns

TResult

The result.