Table of Contents

Class ReadPreferenceServerSelector

Namespace
MongoDB.Driver.Core.Clusters.ServerSelectors
Assembly
MongoDB.Driver.Core.dll

Represents a selector that selects servers based on a read preference.

public class ReadPreferenceServerSelector : IServerSelector
Inheritance
ReadPreferenceServerSelector
Implements
Inherited Members

Constructors

ReadPreferenceServerSelector(ReadPreference)

Initializes a new instance of the ReadPreferenceServerSelector class.

Properties

Primary

Gets a ReadPreferenceServerSelector that selects the Primary.

Methods

SelectServers(ClusterDescription, IEnumerable<ServerDescription>)

Selects the servers.

ToString()