Table of Contents

Constructor CommandSucceededEvent

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

CommandSucceededEvent(string, BsonDocument, DatabaseNamespace, long?, int, ConnectionId, TimeSpan)

Initializes a new instance of the CommandSucceededEvent struct.

public CommandSucceededEvent(string commandName, BsonDocument reply, DatabaseNamespace databaseNamespace, long? operationId, int requestId, ConnectionId connectionId, TimeSpan duration)

Parameters

commandName string

Name of the command.

reply BsonDocument

The reply.

databaseNamespace DatabaseNamespace

The database namespace.

operationId long?

The operation identifier.

requestId int

The request identifier.

connectionId ConnectionId

The connection identifier.

duration TimeSpan

The duration.

CommandSucceededEvent(string, BsonDocument, DatabaseNamespace, long?, int, ConnectionId, ObjectId?, TimeSpan)

Initializes a new instance of the CommandSucceededEvent struct.

public CommandSucceededEvent(string commandName, BsonDocument reply, DatabaseNamespace databaseNamespace, long? operationId, int requestId, ConnectionId connectionId, ObjectId? serviceId, TimeSpan duration)

Parameters

commandName string

Name of the command.

reply BsonDocument

The reply.

databaseNamespace DatabaseNamespace

The database namespace.

operationId long?

The operation identifier.

requestId int

The request identifier.

connectionId ConnectionId

The connection identifier.

serviceId ObjectId?

The service identifier.

duration TimeSpan

The duration.