Constructor CommandSucceededEvent
CommandSucceededEvent(string, BsonDocument, DatabaseNamespace, long?, int, ConnectionId, TimeSpan)
Initializes a new instance of the Command
public CommandSucceededEvent(string commandName, BsonDocument reply, DatabaseNamespace databaseNamespace, long? operationId, int requestId, ConnectionId connectionId, TimeSpan duration)
Parameters
commandName
stringName of the command.
reply
BsonDocument The reply.
databaseNamespace
DatabaseNamespace The database namespace.
operationId
long?The operation identifier.
requestId
intThe 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 Command
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
BsonDocument The reply.
databaseNamespace
DatabaseNamespace The database namespace.
operationId
long?The operation identifier.
requestId
intThe request identifier.
connectionId
ConnectionId The connection identifier.
serviceId
ObjectId ?The service identifier.
duration
TimeSpan The duration.