Table of Contents

Method ExecuteAsync

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

ExecuteAsync(IWriteBinding, CancellationToken)

Executes the operation.

public Task<WriteConcernResult> ExecuteAsync(IWriteBinding binding, CancellationToken cancellationToken)

Parameters

binding IWriteBinding

The binding.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<WriteConcernResult>

A Task whose result is the result of the operation.

ExecuteAsync(RetryableWriteContext, CancellationToken)

Executes the first attempt.

public Task<WriteConcernResult> ExecuteAsync(RetryableWriteContext context, CancellationToken cancellationToken)

Parameters

context RetryableWriteContext

The context.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<WriteConcernResult>

The result.