Method Resolve
- Namespace
- MongoDB.Driver.Core.Configuration
- Assembly
- MongoDB.Driver.Core.dll
Resolve(CancellationToken)
Resolves a connection string. If the connection string indicates more information is available in the DNS system, it will acquire that information as well.
public ConnectionString Resolve(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token.
Returns
- ConnectionString
A resolved ConnectionString.
Resolve(bool, CancellationToken)
Resolves a connection string. If the connection string indicates more information is available in the DNS system, it will acquire that information as well.
public ConnectionString Resolve(bool resolveHosts, CancellationToken cancellationToken = default)
Parameters
resolveHosts
boolWhether to resolve hosts.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- ConnectionString
A resolved ConnectionString.