Constructor CommandSucceededEvent
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
commandNamestringName of the command.
replyBsonDocumentThe reply.
databaseNamespaceDatabaseNamespaceThe database namespace.
operationIdlong?The operation identifier.
requestIdintThe request identifier.
connectionIdConnectionIdThe connection identifier.
durationTimeSpanThe 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
commandNamestringName of the command.
replyBsonDocumentThe reply.
databaseNamespaceDatabaseNamespaceThe database namespace.
operationIdlong?The operation identifier.
requestIdintThe request identifier.
connectionIdConnectionIdThe connection identifier.
serviceIdObjectId?The service identifier.
durationTimeSpanThe duration.