Table of Contents

Method SelectServer

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

SelectServer(IServerSelector, CancellationToken)

Selects a server from the cluster.

IServer SelectServer(IServerSelector selector, CancellationToken cancellationToken)

Parameters

selector IServerSelector

The server selector.

cancellationToken CancellationToken

The cancellation token.

Returns

IServer

The selected server.