Table of Contents

Constructor ServerSettings

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

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

Initializes a new instance of the ServerSettings class.

public ServerSettings(Optional<TimeSpan> heartbeatInterval = default, Optional<TimeSpan> heartbeatTimeout = default, Optional<ServerMonitoringMode> serverMonitoringMode = default)

Parameters

heartbeatInterval Optional<TimeSpan>

The heartbeat interval.

heartbeatTimeout Optional<TimeSpan>

The heartbeat timeout.

serverMonitoringMode Optional<ServerMonitoringMode>

The server monitoring mode.