Table of Contents

Struct ServerDescriptionChangedEvent

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

Occurs after a server's description has changed.

public struct ServerDescriptionChangedEvent
Inherited Members

Constructors

ServerDescriptionChangedEvent(ServerDescription, ServerDescription)

Initializes a new instance of the ServerDescriptionChangedEvent struct.

public ServerDescriptionChangedEvent(ServerDescription oldDescription, ServerDescription newDescription)

Parameters

oldDescription ServerDescription

The old description.

newDescription ServerDescription

The new description.

Properties

ClusterId

Gets the cluster identifier.

public ClusterId ClusterId { get; }

Property Value

ClusterId

NewDescription

Gets the new description.

public ServerDescription NewDescription { get; }

Property Value

ServerDescription

OldDescription

Gets the old description.

public ServerDescription OldDescription { get; }

Property Value

ServerDescription

ServerId

Gets the server identifier.

public ServerId ServerId { get; }

Property Value

ServerId

Timestamp

Gets the timestamp.

public DateTime Timestamp { get; }

Property Value

DateTime