Struct CommandSucceededEvent
Occurs when a command has succeeded.
public struct CommandSucceededEvent
- Inherited Members
Constructors
CommandSucceededEvent(string, BsonDocument, DatabaseNamespace, long?, int, ConnectionId, ObjectId?, TimeSpan)
Initializes a new instance of the CommandSucceededEvent struct.
public CommandSucceededEvent(string commandName, BsonDocument reply, DatabaseNamespace databaseNamespace, long? operationId, int requestId, ConnectionId connectionId, ObjectId? serviceId, TimeSpan duration)
Parameters
commandNamestringName of the command.
replyBsonDocumentThe reply.
databaseNamespaceDatabaseNamespaceThe database namespace.
operationIdlong?The operation identifier.
requestIdintThe request identifier.
connectionIdConnectionIdThe connection identifier.
serviceIdObjectId?The service identifier.
durationTimeSpanThe duration.
CommandSucceededEvent(string, BsonDocument, DatabaseNamespace, long?, int, ConnectionId, TimeSpan)
Initializes a new instance of the CommandSucceededEvent struct.
public CommandSucceededEvent(string commandName, BsonDocument reply, DatabaseNamespace databaseNamespace, long? operationId, int requestId, ConnectionId connectionId, TimeSpan duration)
Parameters
commandNamestringName of the command.
replyBsonDocumentThe reply.
databaseNamespaceDatabaseNamespaceThe database namespace.
operationIdlong?The operation identifier.
requestIdintThe request identifier.
connectionIdConnectionIdThe connection identifier.
durationTimeSpanThe duration.
Properties
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
Duration
Gets the duration.
public TimeSpan Duration { get; }
Property Value
OperationId
Gets the operation identifier.
public long? OperationId { get; }
Property Value
- long?
Reply
Gets the reply.
public BsonDocument Reply { get; }
Property Value
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; }