Table of Contents

Constructor ServerClosedEvent

Namespace
MongoDB.Driver.Core.Events
Assembly
MongoDB.Driver.dll

ServerClosedEvent(ServerId, TimeSpan)

Initializes a new instance of the ServerClosedEvent struct.

public ServerClosedEvent(ServerId serverId, TimeSpan duration)

Parameters

serverId ServerId

The server identifier.

duration TimeSpan

The duration of time it took to close the server.