Table of Contents

Class SingleServerReadBinding

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

Represents a read binding to a single server;

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

Constructors

SingleServerReadBinding(IServer, ReadPreference, ICoreSessionHandle)

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