Table of Contents

Interface IReadBinding

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

Represents a binding that determines which channel source gets used for read operations.

public interface IReadBinding : IBinding, IDisposable
Inherited Members

Properties

ReadPreference

Gets the read preference.

ReadPreference ReadPreference { get; }

Property Value

ReadPreference

The read preference.

Methods

GetReadChannelSource(CancellationToken)

Gets a channel source for read operations.

IChannelSourceHandle GetReadChannelSource(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

IChannelSourceHandle

A channel source.

GetReadChannelSourceAsync(CancellationToken)

Gets a channel source for read operations.

Task<IChannelSourceHandle> GetReadChannelSourceAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

Task<IChannelSourceHandle>

A channel source.