Class ReadPreferenceServerSelector

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver.Core.Clusters.ServerSelectors

Assembly

MongoDB.Driver.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)

Selects the servers.

ToString()

Returns a string that represents the current object.