Method Resolve
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 MongoUrl Resolve(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe cancellation token.
Returns
- MongoUrl
A resolved MongoURL.
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 MongoUrl Resolve(bool resolveHosts, CancellationToken cancellationToken = default)
Parameters
resolveHostsboolWhether to resolve hosts.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- MongoUrl
A resolved MongoURL.