Table of Contents

Class RetryableWriteContext

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

Represents a context for retryable writes.

[Obsolete("This class will be made internal in a later release.")]
public sealed class RetryableWriteContext : IDisposable
Inheritance
RetryableWriteContext
Implements
Inherited Members

Constructors

RetryableWriteContext(IWriteBinding, bool)

Initializes a new instance of the RetryableWriteContext class.

Properties

Binding

Gets the binding.

Channel

Gets the channel.

ChannelSource

Gets the channel source.

RetryRequested

Gets a value indicating whether the operation can be retried.

Methods

Create(IWriteBinding, bool, CancellationToken)

Creates and initializes a retryable write operation context.

CreateAsync(IWriteBinding, bool, CancellationToken)

Creates and initializes a retryable write operation context.

DisableRetriesIfAnyWriteRequestIsNotRetryable(IEnumerable<WriteRequest>)

Disables retries.

Dispose()
ReplaceChannel(IChannelHandle)

Replaces the channel.

ReplaceChannelSource(IChannelSourceHandle)

Replaces the channel source.

See Also