Constructor ConnectionSettings
- Namespace
- MongoDB.Driver.Core.Configuration
- Assembly
- MongoDB.Driver.Core.dll
ConnectionSettings(Optional<IEnumerable<IAuthenticatorFactory>>, Optional<IEnumerable<CompressorConfiguration>>, Optional<LibraryInfo>, Optional<bool>, Optional<TimeSpan>, Optional<TimeSpan>, Optional<string>)
Initializes a new instance of the ConnectionSettings class.
public ConnectionSettings(Optional<IEnumerable<IAuthenticatorFactory>> authenticatorFactories = default, Optional<IEnumerable<CompressorConfiguration>> compressors = default, Optional<LibraryInfo> libraryInfo = default, Optional<bool> loadBalanced = default, Optional<TimeSpan> maxIdleTime = default, Optional<TimeSpan> maxLifeTime = default, Optional<string> applicationName = default)Parameters
- authenticatorFactoriesOptional<IEnumerable<IAuthenticatorFactory>>
- The authenticator factories. 
- compressorsOptional<IEnumerable<CompressorConfiguration>>
- The compressors. 
- libraryInfoOptional<LibraryInfo>
- The library information. 
- loadBalancedOptional<bool>
- Whether the load balanced mode is enabled. 
- maxIdleTimeOptional<TimeSpan>
- The maximum idle time. 
- maxLifeTimeOptional<TimeSpan>
- The maximum life time. 
- applicationNameOptional<string>
- The application name.