Table of Contents

Constructor MongoQueryEventData

Namespace
MongoDB.EntityFrameworkCore.Diagnostics
Assembly
MongoDB.EntityFrameworkCore.dll

MongoQueryEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, CollectionNamespace, string, bool)

Constructs the event payload.

public MongoQueryEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, CollectionNamespace collectionNamespace, string queryMql, bool logSensitiveData)

Parameters

eventDefinition EventDefinitionBase

The event definition.

messageGenerator Func<EventDefinitionBase, EventData, string>

A delegate that generates a log message for this event.

collectionNamespace CollectionNamespace

The CollectionNamespace being queried.

queryMql string

The MQL representing the query.

logSensitiveData bool

Indicates whether the application allows logging of sensitive data.