Table of Contents

Class SingleServerReadWriteBinding

Namespace
MongoDB.Driver.Core.Bindings
Assembly
MongoDB.Driver.Core.dll

Represents a read/write binding to a single server.

public sealed class SingleServerReadWriteBinding : IReadWriteBinding, IReadBinding, IWriteBinding, IBinding, IDisposable
Inheritance
SingleServerReadWriteBinding
Implements
Inherited Members

Constructors

SingleServerReadWriteBinding(IServer, ICoreSessionHandle)

Initializes a new instance of the SingleServerReadWriteBinding class.

Properties

ReadPreference

Gets the read preference.

Session

Gets the session.

Methods

Dispose()
GetReadChannelSource(CancellationToken)

Gets a channel source for read operations.

GetReadChannelSourceAsync(CancellationToken)

Gets a channel source for read operations.

GetWriteChannelSource(IMayUseSecondaryCriteria, CancellationToken)

Gets a channel source for write operations that may use a secondary.

GetWriteChannelSource(CancellationToken)

Gets a channel source for write operations.

GetWriteChannelSourceAsync(IMayUseSecondaryCriteria, CancellationToken)

Gets a channel source for write operations that may use a secondary.

GetWriteChannelSourceAsync(CancellationToken)

Gets a channel source for write operations.