Table of Contents

Method AcquireConnectionAsync

Namespace
MongoDB.Driver.Core.ConnectionPools
Assembly
MongoDB.Driver.Core.dll

AcquireConnectionAsync(CancellationToken)

Acquires a connection.

Task<IConnectionHandle> AcquireConnectionAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

Task<IConnectionHandle>

A Task whose result is a connection.