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
commandName
stringName of the command.
databaseNamespace
DatabaseNamespaceThe database namespace.
exception
ExceptionThe exception.
operationId
long?The operation identifier.
requestId
intThe request identifier.
connectionId
ConnectionIdThe connection identifier.
duration
TimeSpanThe 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
commandName
stringName of the command.
databaseNamespace
DatabaseNamespaceThe database namespace.
exception
ExceptionThe exception.
operationId
long?The operation identifier.
requestId
intThe request identifier.
connectionId
ConnectionIdThe connection identifier.
serviceId
ObjectId?The service identifier.
duration
TimeSpanThe duration.