ServerSettings Constructor |
Namespace:
MongoDB.Driver.Core.Configuration
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public ServerSettings(
Optional<TimeSpan> heartbeatInterval = default,
Optional<TimeSpan> heartbeatTimeout = default
)
Public Sub New (
Optional heartbeatInterval As Optional(Of TimeSpan) = Nothing,
Optional heartbeatTimeout As Optional(Of TimeSpan) = Nothing
)
new :
?heartbeatInterval : Optional<TimeSpan> *
?heartbeatTimeout : Optional<TimeSpan>
(* Defaults:
let _heartbeatInterval = defaultArg heartbeatInterval new Optional<TimeSpan>()
let _heartbeatTimeout = defaultArg heartbeatTimeout new Optional<TimeSpan>()
*)
-> ServerSettings
Parameters
- heartbeatInterval (Optional)
- Type: MongoDB.DriverOptionalTimeSpan
The heartbeat interval. - heartbeatTimeout (Optional)
- Type: MongoDB.DriverOptionalTimeSpan
The heartbeat timeout.
See Also