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
eventDefinitionEventDefinitionBaseThe event definition.
messageGeneratorFunc<EventDefinitionBase, EventData, string>A delegate that generates a log message for this event.
collectionNamespaceCollectionNamespaceThe CollectionNamespace being queried.
queryMqlstringThe MQL representing the query.
logSensitiveDataboolIndicates whether the application allows logging of sensitive data.