Table of Contents

Struct ConnectionOpeningFailedEvent

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

Occurs when a connection fails to open.

public struct ConnectionOpeningFailedEvent
Inherited Members

Constructors

ConnectionOpeningFailedEvent(ConnectionId, ConnectionSettings, Exception, long?)

Initializes a new instance of the ConnectionOpeningFailedEvent struct.

public ConnectionOpeningFailedEvent(ConnectionId connectionId, ConnectionSettings connectionSettings, Exception exception, long? operationId)

Parameters

connectionId ConnectionId

The connection identifier.

connectionSettings ConnectionSettings

The connection settings.

exception Exception

The exception.

operationId long?

The operation identifier.

Properties

ClusterId

Gets the cluster identifier.

public ClusterId ClusterId { get; }

Property Value

ClusterId

ConnectionId

Gets the connection identifier.

public ConnectionId ConnectionId { get; }

Property Value

ConnectionId

ConnectionSettings

Gets the connection settings.

public ConnectionSettings ConnectionSettings { get; }

Property Value

ConnectionSettings

Exception

Gets the exception.

public Exception Exception { get; }

Property Value

Exception

OperationId

Gets the operation identifier.

public long? OperationId { get; }

Property Value

long?

ServerId

Gets the server identifier.

public ServerId ServerId { get; }

Property Value

ServerId

Timestamp

Gets the timestamp.

public DateTime Timestamp { get; }

Property Value

DateTime