IDiagnosticsLogger.NeedsEventData Méthode

Définition

Surcharges

NeedsEventData(EventDefinitionBase, Boolean, Boolean)

Détermine si une EventData instance est nécessaire en fonction de l’activation ou non d’un DiagnosticSourceIDbContextLogger événement donné.

NeedsEventData<TInterceptor>(EventDefinitionBase, TInterceptor, Boolean, Boolean)

Détermine si une EventData instance est nécessaire en fonction de la valeur , d’un ou d’un DiagnosticSourceIDbContextLoggerIInterceptor activé pour l’événement donné.

NeedsEventData(EventDefinitionBase, Boolean, Boolean)

Détermine si une EventData instance est nécessaire en fonction de l’activation ou non d’un DiagnosticSourceIDbContextLogger événement donné.

public virtual bool NeedsEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase definition, out bool diagnosticSourceEnabled, out bool simpleLogEnabled);
abstract member NeedsEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * bool * bool -> bool
override this.NeedsEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * bool * bool -> bool
Public Overridable Function NeedsEventData (definition As EventDefinitionBase, ByRef diagnosticSourceEnabled As Boolean, ByRef simpleLogEnabled As Boolean) As Boolean

Paramètres

definition
EventDefinitionBase

Définition de l’événement.

diagnosticSourceEnabled
Boolean

Définissez sur true si un DiagnosticSource est activé ; false sinon.

simpleLogEnabled
Boolean

True à true si un IDbContextLogger est activé ; false sinon.

Retours

true si une source de diagnostic ou un journal LogTo est activé ; false Sinon.

S’applique à

NeedsEventData<TInterceptor>(EventDefinitionBase, TInterceptor, Boolean, Boolean)

Détermine si une EventData instance est nécessaire en fonction de la valeur , d’un ou d’un DiagnosticSourceIDbContextLoggerIInterceptor activé pour l’événement donné.

public virtual bool NeedsEventData<TInterceptor> (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase definition, out TInterceptor interceptor, out bool diagnosticSourceEnabled, out bool simpleLogEnabled) where TInterceptor : class, Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor;
public virtual bool NeedsEventData<TInterceptor> (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase definition, out TInterceptor? interceptor, out bool diagnosticSourceEnabled, out bool simpleLogEnabled) where TInterceptor : class, Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor;
abstract member NeedsEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * 'Interceptor * bool * bool -> bool (requires 'Interceptor : null and 'Interceptor :> Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor)
override this.NeedsEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * 'Interceptor * bool * bool -> bool (requires 'Interceptor : null and 'Interceptor :> Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor)
Public Overridable Function NeedsEventData(Of TInterceptor As {Class, IInterceptor}) (definition As EventDefinitionBase, ByRef interceptor As TInterceptor, ByRef diagnosticSourceEnabled As Boolean, ByRef simpleLogEnabled As Boolean) As Boolean

Paramètres de type

TInterceptor

Paramètres

definition
EventDefinitionBase

Définition de l’événement.

interceptor
TInterceptor

IInterceptor à utiliser s’il est activé ; sinon null.

diagnosticSourceEnabled
Boolean

Définissez sur true si un DiagnosticSource est activé ; false sinon.

simpleLogEnabled
Boolean

True à true si un IDbContextLogger est activé ; false sinon.

Retours

true si une source de diagnostic, un journal LogTo ou un intercepteur est activé ; false Sinon.

S’applique à