Click or drag to resize
ConnectionSettings Constructor
Initializes a new instance of the ConnectionSettings class.

Namespace: MongoDB.Driver.Core.Configuration
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.2.0
Syntax
public ConnectionSettings(
	Optional<IEnumerable<IAuthenticator>> authenticators = null,
	Optional<TimeSpan> maxIdleTime = null,
	Optional<TimeSpan> maxLifeTime = null
)

Parameters

authenticators (Optional)
Type: MongoDB.DriverOptionalIEnumerableIAuthenticator
The authenticators.
maxIdleTime (Optional)
Type: MongoDB.DriverOptionalTimeSpan
The maximum idle time.
maxLifeTime (Optional)
Type: MongoDB.DriverOptionalTimeSpan
The maximum life time.
See Also