Partilhar via


IDiagnosticsLogger.DispatchEventData Método

Definição

Despacha o determinado EventData para um DiagnosticSource, se habilitado, e um IDbContextLogger, se habilitado.

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)

Parâmetros

definition
EventDefinitionBase

A definição do evento a ser registrado.

eventData
EventData

Os dados do evento.

diagnosticSourceEnabled
Boolean

True para expedir para um DiagnosticSource; false caso contrário, .

simpleLogEnabled
Boolean

True para expedir para um IDbContextLogger; false caso contrário, .

Aplica-se a