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
commandName
stringName of the command.
reply
BsonDocumentThe reply.
databaseNamespace
DatabaseNamespaceThe database namespace.
operationId
long?The operation identifier.
requestId
intThe request identifier.
connectionId
ConnectionIdThe connection identifier.
duration
TimeSpanThe 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
stringName of the command.
reply
BsonDocumentThe reply.
databaseNamespace
DatabaseNamespaceThe database namespace.
operationId
long?The operation identifier.
requestId
intThe request identifier.
connectionId
ConnectionIdThe connection identifier.
serviceId
ObjectId?The service identifier.
duration
TimeSpanThe duration.