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.12.2+a4a3888f4fb51bb518b1eb5002effc2d47f2ea6a
Syntax
public ConnectionSettings(
	Optional<IEnumerable<IAuthenticatorFactory>> authenticatorFactories = null,
	Optional<IEnumerable<CompressorConfiguration>> compressors = null,
	Optional<TimeSpan> maxIdleTime = null,
	Optional<TimeSpan> maxLifeTime = null,
	Optional<string> applicationName = null
)

Parameters

authenticatorFactories (Optional)
Type: MongoDB.DriverOptionalIEnumerableIAuthenticatorFactory
The authenticator factories.
compressors (Optional)
Type: MongoDB.DriverOptionalIEnumerableCompressorConfiguration
The compressors.
maxIdleTime (Optional)
Type: MongoDB.DriverOptionalTimeSpan
The maximum idle time.
maxLifeTime (Optional)
Type: MongoDB.DriverOptionalTimeSpan
The maximum life time.
applicationName (Optional)
Type: MongoDB.DriverOptionalString
The application name.
See Also