Table of Contents

Constructor CommandStartedEvent

Namespace
MongoDB.Driver.Core.Events
Assembly
MongoDB.Driver.dll

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 string

Name of the command.

command BsonDocument

The command.

databaseNamespace DatabaseNamespace

The database namespace.

operationId long?

The operation identifier.

requestId int

The request identifier.

connectionId ConnectionId

The 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 string

Name of the command.

command BsonDocument

The command.

databaseNamespace DatabaseNamespace

The database namespace.

operationId long?

The operation identifier.

requestId int

The request identifier.

connectionId ConnectionId

The connection identifier.

serviceId ObjectId?

The service identifier.