Table of Contents

Class ServerSettings

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

Represents settings for a server.

public class ServerSettings
Inheritance
ServerSettings
Inherited Members

Constructors

ServerSettings(Optional<TimeSpan>, Optional<TimeSpan>, Optional<ServerMonitoringMode>)

Initializes a new instance of the ServerSettings class.

Properties

DefaultHeartbeatInterval

Gets the default heartbeat interval.

DefaultHeartbeatTimeout

Gets the default heartbeat timeout.

DefaultServerMonitoringMode

Gets the default server monitoring mode.

HeartbeatInterval

Gets the heartbeat interval.

HeartbeatTimeout

Gets the heartbeat timeout.

ServerMonitoringMode

Gets the server monitoring mode.

Methods

With(Optional<TimeSpan>, Optional<TimeSpan>, Optional<ServerMonitoringMode>)

Returns a new ServerSettings instance with some settings changed.