Table of Contents

Class ConnectionId

Namespace
MongoDB.Driver.Core.Connections
Assembly
MongoDB.Driver.Core.dll

Represents a connection identifier.

[Serializable]
public sealed class ConnectionId : IEquatable<ConnectionId>
Inheritance
ConnectionId
Implements
Inherited Members

Constructors

ConnectionId(ServerId)

Initializes a new instance of the ConnectionId class.

ConnectionId(ServerId, long)

Initializes a new instance of the ConnectionId class.

Properties

LocalValue

Gets the local value.

LongLocalValue

Gets the local value.

LongServerValue

Gets the server value.

ServerId

Gets the server identifier.

ServerValue

Gets the server value.

Methods

Equals(ConnectionId)
Equals(object)
GetHashCode()
StructurallyEquals(ConnectionId)

Compares all fields of two ConnectionId instances (Equals ignores the ServerValue).

ToString()
WithServerValue(long)

Returns a new instance of ConnectionId with a new server value.