Constructor ConnectionSettings
- Namespace
- MongoDB.Driver.Core.Configuration
- Assembly
- MongoDB.Driver.dll
ConnectionSettings(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<CompressorConfiguration>> compressors = default, Optional<LibraryInfo> libraryInfo = default, Optional<bool> loadBalanced = default, Optional<TimeSpan> maxIdleTime = default, Optional<TimeSpan> maxLifeTime = default, Optional<string> applicationName = default)
Parameters
compressors
Optional<IEnumerable<CompressorConfiguration>>The compressors.
libraryInfo
Optional<LibraryInfo>The library information.
loadBalanced
Optional<bool>Whether the load balanced mode is enabled.
maxIdleTime
Optional<TimeSpan>The maximum idle time.
maxLifeTime
Optional<TimeSpan>The maximum life time.
applicationName
Optional<string>The application name.