Constructor MongoBulkWriteEventData
- Namespace
- MongoDB.EntityFrameworkCore.Diagnostics
- Assembly
- MongoDB.EntityFrameworkCore.dll
MongoBulkWriteEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, TimeSpan, CollectionNamespace, long, long, long)
Constructs the event payload.
public MongoBulkWriteEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, TimeSpan elapsed, CollectionNamespace collectionNamespace, long insertCount, long deleteCount, long modifyCount)
Parameters
eventDefinitionEventDefinitionBaseThe event definition.
messageGeneratorFunc<EventDefinitionBase, EventData, string>A delegate that generates a log message for this event.
elapsedTimeSpanThe time elapsed since the command was sent to the database.
collectionNamespaceCollectionNamespaceThe CollectionNamespace being operated upon.
insertCountlongThe number of documents to insert in this bulk write operation.
deleteCountlongThe number of documents to delete by this bulk write operation.
modifyCountlongThe number of documents to modify by this bulk write operation.