Table of Contents

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

eventDefinition EventDefinitionBase

The event definition.

messageGenerator Func<EventDefinitionBase, EventData, string>

A delegate that generates a log message for this event.

elapsed TimeSpan

The time elapsed since the command was sent to the database.

collectionNamespace CollectionNamespace

The CollectionNamespace being operated upon.

insertCount long

The number of documents to insert in this bulk write operation.

deleteCount long

The number of documents to delete by this bulk write operation.

modifyCount long

The number of documents to modify by this bulk write operation.