Table of Contents

Method With

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

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

Returns a new ServerSettings instance with some settings changed.

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

Parameters

heartbeatInterval Optional<TimeSpan>

The heartbeat interval.

heartbeatTimeout Optional<TimeSpan>

The heartbeat timeout.

Returns

ServerSettings

A new ServerSettings instance.