Table of Contents

Class ReadPreferenceBinding

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

Represents a read binding to a cluster using a ReadPreference to select the server.

public sealed class ReadPreferenceBinding : IReadBinding, IBinding, IDisposable
Inheritance
ReadPreferenceBinding
Implements
Inherited Members

Constructors

ReadPreferenceBinding(ICluster, ReadPreference, ICoreSessionHandle)

Initializes a new instance of the ReadPreferenceBinding 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.