Class ConnectionSettings
- Namespace
- MongoDB.Driver.Core.Configuration
- Assembly
- MongoDB.Driver.dll
Represents settings for a connection.
public class ConnectionSettings
- Inheritance
-
ConnectionSettings
- Inherited Members
Constructors
- ConnectionSettings(Optional<IEnumerable<CompressorConfiguration>>, Optional<LibraryInfo>, Optional<bool>, Optional<TimeSpan>, Optional<TimeSpan>, Optional<string>)
Initializes a new instance of the ConnectionSettings class.
Properties
- ApplicationName
Gets the name of the application.
- Compressors
Gets the compressors.
- LibraryInfo
Information about a library using the .NET driver.
- LoadBalanced
Whether the load balanced mode is enabled.
- MaxIdleTime
Gets the maximum idle time.
- MaxLifeTime
Gets the maximum life time.
Methods
- With(Optional<IEnumerable<CompressorConfiguration>>, Optional<LibraryInfo>, Optional<bool>, Optional<TimeSpan>, Optional<TimeSpan>, Optional<string>)
Returns a new ConnectionSettings instance with some settings changed.