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
EndPointThe end point.
Methods
SelectServers(ClusterDescription, IEnumerable<ServerDescription>)
Selects the servers.
public IEnumerable<ServerDescription> SelectServers(ClusterDescription cluster, IEnumerable<ServerDescription> servers)
Parameters
cluster
ClusterDescriptionThe cluster.
servers
IEnumerable<ServerDescription>The servers.
Returns
- IEnumerable<ServerDescription>
The selected servers.
ToString()
public override string ToString()