Table of Contents

Class EndPointServerSelector

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

Represents a selector that selects servers based on an end point.

public class EndPointServerSelector : IServerSelector
Inheritance
EndPointServerSelector
Implements
Inherited Members

Constructors

EndPointServerSelector(EndPoint)

Initializes a new instance of the EndPointServerSelector class.

public EndPointServerSelector(EndPoint endPoint)

Parameters

endPoint EndPoint

The end point.

Methods

SelectServers(ClusterDescription, IEnumerable<ServerDescription>)

Selects the servers.

public IEnumerable<ServerDescription> SelectServers(ClusterDescription cluster, IEnumerable<ServerDescription> servers)

Parameters

cluster ClusterDescription

The cluster.

servers IEnumerable<ServerDescription>

The servers.

Returns

IEnumerable<ServerDescription>

The selected servers.

ToString()

public override string ToString()

Returns

string