Constructor CommandFailedEvent
CommandFailedEvent(string, DatabaseNamespace, Exception, long?, int, ConnectionId, TimeSpan)
Initializes a new instance of the Command
public CommandFailedEvent(string commandName, DatabaseNamespace databaseNamespace, Exception exception, long? operationId, int requestId, ConnectionId connectionId, TimeSpan duration)
Parameters
commandName
stringName of the command.
databaseNamespace
DatabaseNamespace The database namespace.
exception
ExceptionThe exception.
operationId
long?The operation identifier.
requestId
intThe request identifier.
connectionId
ConnectionId The connection identifier.
duration
TimeSpan The duration.
CommandFailedEvent(string, DatabaseNamespace, Exception, long?, int, ConnectionId, ObjectId?, TimeSpan)
Initializes a new instance of the Command
public CommandFailedEvent(string commandName, DatabaseNamespace databaseNamespace, Exception exception, long? operationId, int requestId, ConnectionId connectionId, ObjectId? serviceId, TimeSpan duration)
Parameters
commandName
stringName of the command.
databaseNamespace
DatabaseNamespace The database namespace.
exception
ExceptionThe exception.
operationId
long?The operation identifier.
requestId
intThe request identifier.
connectionId
ConnectionId The connection identifier.
serviceId
ObjectId ?The service identifier.
duration
TimeSpan The duration.