Constructor CommandSucceededEvent

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver.Core.Events

Assembly

MongoDB.Driver.dll

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

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)

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.