Method AcquireConnectionAsync
- Namespace
- MongoDB.Driver.Core.ConnectionPools
- Assembly
- MongoDB.Driver.Core.dll
AcquireConnectionAsync(CancellationToken)
Acquires a connection.
Task<IConnectionHandle> AcquireConnectionAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<IConnectionHandle>
A Task whose result is a connection.