Table of Contents

Class ChannelSourceReadWriteBinding

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

Represents a read-write binding to a channel source.

[Obsolete("This class will be made internal in a later release.")]
public sealed class ChannelSourceReadWriteBinding : IReadWriteBinding, IReadBinding, IWriteBinding, IBinding, IDisposable
Inheritance
ChannelSourceReadWriteBinding
Implements
Inherited Members

Constructors

ChannelSourceReadWriteBinding(IChannelSourceHandle, ReadPreference, ICoreSessionHandle)

Initializes a new instance of the ChannelSourceReadWriteBinding class.

Properties

ReadPreference

Gets the read preference.

Session

Gets the session.

Methods

Dispose()
GetReadChannelSource(IReadOnlyCollection<ServerDescription>, CancellationToken)

Gets a channel source for read operations while deprioritizing servers in the provided collection.

GetReadChannelSource(CancellationToken)

Gets a channel source for read operations.

GetReadChannelSourceAsync(IReadOnlyCollection<ServerDescription>, CancellationToken)

Gets a channel source for read operations while deprioritizing servers in the provided collection.

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(IReadOnlyCollection<ServerDescription>, IMayUseSecondaryCriteria, CancellationToken)

Gets a channel source for write operations that may use a secondary and deprioritizes servers in the provided collection.

GetWriteChannelSource(IReadOnlyCollection<ServerDescription>, CancellationToken)

Gets a channel source for write operations while deprioritizing servers in the provided collection.

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(IReadOnlyCollection<ServerDescription>, IMayUseSecondaryCriteria, CancellationToken)

Gets a channel source for write operations that may use a secondary and deprioritizes servers in the provided collection.

GetWriteChannelSourceAsync(IReadOnlyCollection<ServerDescription>, CancellationToken)

Gets a channel source for write operations while deprioritizing servers in the provided collection.

GetWriteChannelSourceAsync(CancellationToken)

Gets a channel source for write operations.