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<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.

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<bool>, Optional<TimeSpan>, Optional<TimeSpan>, Optional<string>)

Returns a new ConnectionSettings instance with some settings changed.