IDiagnosticsLogger.DispatchEventData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Dispatches the given EventData to a DiagnosticSource, if enabled, and a IDbContextLogger, if enabled.
public virtual void DispatchEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase definition, Microsoft.EntityFrameworkCore.Diagnostics.EventData eventData, bool diagnosticSourceEnabled, bool simpleLogEnabled);
abstract member DispatchEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Microsoft.EntityFrameworkCore.Diagnostics.EventData * bool * bool -> unit
override this.DispatchEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Microsoft.EntityFrameworkCore.Diagnostics.EventData * bool * bool -> unit
Public Overridable Sub DispatchEventData (definition As EventDefinitionBase, eventData As EventData, diagnosticSourceEnabled As Boolean, simpleLogEnabled As Boolean)
Parameters
- definition
- EventDefinitionBase
The definition of the event to log.
- eventData
- EventData
The event data.
- diagnosticSourceEnabled
- Boolean
True to dispatch to a DiagnosticSource; false
otherwise.
- simpleLogEnabled
- Boolean
True to dispatch to a IDbContextLogger; false
otherwise.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework