Table of Contents

Class ConnectionSettings

Namespace
MongoDB.Driver.Core.Configuration
Assembly
MongoDB.Driver.Core.dll

Represents settings for a connection.

public class ConnectionSettings
Inheritance
ConnectionSettings
Inherited Members

Constructors

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.

Properties

ApplicationName

Gets the name of the application.

AuthenticatorFactories

Gets the authenticator factories.

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<IAuthenticatorFactory>>, Optional<IEnumerable<CompressorConfiguration>>, Optional<LibraryInfo>, Optional<bool>, Optional<TimeSpan>, Optional<TimeSpan>, Optional<string>)

Returns a new ConnectionSettings instance with some settings changed.