Constructor CommandFailedEvent
CommandFailedEvent(string, DatabaseNamespace, Exception, long?, int, ConnectionId, TimeSpan)
Initializes a new instance of the CommandFailedEvent struct.
public CommandFailedEvent(string commandName, DatabaseNamespace databaseNamespace, Exception exception, long? operationId, int requestId, ConnectionId connectionId, TimeSpan duration)
Parameters
commandNamestringName of the command.
databaseNamespaceDatabaseNamespaceThe database namespace.
exceptionExceptionThe exception.
operationIdlong?The operation identifier.
requestIdintThe request identifier.
connectionIdConnectionIdThe connection identifier.
durationTimeSpanThe duration.
CommandFailedEvent(string, DatabaseNamespace, Exception, long?, int, ConnectionId, ObjectId?, TimeSpan)
Initializes a new instance of the CommandFailedEvent struct.
public CommandFailedEvent(string commandName, DatabaseNamespace databaseNamespace, Exception exception, long? operationId, int requestId, ConnectionId connectionId, ObjectId? serviceId, TimeSpan duration)
Parameters
commandNamestringName of the command.
databaseNamespaceDatabaseNamespaceThe database namespace.
exceptionExceptionThe exception.
operationIdlong?The operation identifier.
requestIdintThe request identifier.
connectionIdConnectionIdThe connection identifier.
serviceIdObjectId?The service identifier.
durationTimeSpanThe duration.