Table of Contents

Class ConnectionId

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

Represents a connection identifier.

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)

Indicates whether the current object is equal to another object of the same type.

Equals(object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

StructurallyEquals(ConnectionId)

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

ToString()

Returns a string that represents the current object.

WithServerValue(long)

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