Constructor MongoTransactionErrorEventData
- Namespace
- MongoDB.EntityFrameworkCore.Diagnostics
- Assembly
- MongoDB.EntityFrameworkCore.dll
MongoTransactionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, MongoTransaction, bool, string, Exception, DateTimeOffset, TimeSpan)
Constructs the event payload.
public MongoTransactionErrorEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, MongoTransaction transaction, bool async, string action, Exception exception, DateTimeOffset startTime, TimeSpan duration)
Parameters
eventDefinitionEventDefinitionBaseThe event definition.
messageGeneratorFunc<EventDefinitionBase, EventData, string>A delegate that generates a log message for this event.
transactionMongoTransactionThe MongoTransaction.
asyncboolIndicates whether or not the transaction is being used asynchronously.
actionstringOne of "Commit" or "Rollback".
exceptionExceptionThe exception that was thrown when the transaction failed.
startTimeDateTimeOffsetThe start time of this event.
durationTimeSpanThe duration this event.