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
commandNamestringName of the command.
commandBsonDocumentThe command.
databaseNamespaceDatabaseNamespaceThe database namespace.
operationIdlong?The operation identifier.
requestIdintThe request identifier.
connectionIdConnectionIdThe 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
commandNamestringName of the command.
commandBsonDocumentThe command.
databaseNamespaceDatabaseNamespaceThe database namespace.
operationIdlong?The operation identifier.
requestIdintThe request identifier.
connectionIdConnectionIdThe connection identifier.
serviceIdObjectId?The service identifier.