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