Struct CommandStartedEvent
Occurs when a command has started.
public struct CommandStartedEvent
- Inherited Members
Constructors
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.
Properties
Command
Gets the command.
public BsonDocument Command { get; }
Property Value
CommandName
Gets the name of the command.
public string CommandName { get; }
Property Value
ConnectionId
Gets the connection identifier.
public ConnectionId ConnectionId { get; }
Property Value
DatabaseNamespace
Gets the database namespace.
public DatabaseNamespace DatabaseNamespace { get; }
Property Value
OperationId
Gets the operation identifier.
public long? OperationId { get; }
Property Value
- long?
RequestId
Gets the request identifier.
public int RequestId { get; }
Property Value
ServiceId
Gets the service identifier.
public ObjectId? ServiceId { get; }
Property Value
Timestamp
Gets the timestamp.
public DateTime Timestamp { get; }