Constructor CommandStartedEvent
CommandStartedEvent(string, BsonDocument, DatabaseNamespace, long?, int, ConnectionId)
Initializes a new instance of the Command
public CommandStartedEvent(string commandName, BsonDocument command, DatabaseNamespace databaseNamespace, long? operationId, int requestId, ConnectionId connectionId)
Parameters
commandName
stringName of the command.
command
BsonDocument The command.
databaseNamespace
DatabaseNamespace The database namespace.
operationId
long?The operation identifier.
requestId
intThe request identifier.
connectionId
ConnectionId The connection identifier.
CommandStartedEvent(string, BsonDocument, DatabaseNamespace, long?, int, ConnectionId, ObjectId?)
Initializes a new instance of the Command
public CommandStartedEvent(string commandName, BsonDocument command, DatabaseNamespace databaseNamespace, long? operationId, int requestId, ConnectionId connectionId, ObjectId? serviceId)
Parameters
commandName
stringName of the command.
command
BsonDocument The command.
databaseNamespace
DatabaseNamespace The database namespace.
operationId
long?The operation identifier.
requestId
intThe request identifier.
connectionId
ConnectionId The connection identifier.
serviceId
ObjectId ?The service identifier.