Sprache

IDiagnosticsLogger.NeedsEventData Methode

Definition

Überlädt

Name Beschreibung
NeedsEventData(EventDefinitionBase, Boolean, Boolean)

Bestimmt, ob eine EventData Instanz erforderlich ist, basierend darauf, ob ein DiagnosticSource oder kein IDbContextLogger für das angegebene Ereignis aktiviert ist.

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

Bestimmt, ob eine EventData Instanz benötigt wird, je nachdem, ob ein DiagnosticSource, ein IDbContextLoggeroder ein IInterceptor für das angegebene Ereignis aktiviert ist.

NeedsEventData(EventDefinitionBase, Boolean, Boolean)

Quelle:
IDiagnosticsLogger.cs
Quelle:
IDiagnosticsLogger.cs
Quelle:
IDiagnosticsLogger.cs
Quelle:
IDiagnosticsLogger.cs
Quelle:
IDiagnosticsLogger.cs
Quelle:
IDiagnosticsLogger.cs
Quelle:
IDiagnosticsLogger.cs

Bestimmt, ob eine EventData Instanz erforderlich ist, basierend darauf, ob ein DiagnosticSource oder kein IDbContextLogger für das angegebene Ereignis aktiviert ist.

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

Parameter

definition
EventDefinitionBase

Die Definition des Ereignisses.

diagnosticSourceEnabled
Boolean

Legen Sie fest, true ob eine DiagnosticSource Aktiviert ist, false andernfalls.

simpleLogEnabled
Boolean

True, true wenn eine IDbContextLogger aktiviert ist; false andernfalls.

Gibt zurück

true wenn entweder eine Diagnosequelle oder ein Logto-Logger aktiviert ist; false andernfalls.

Gilt für:

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

Quelle:
IDiagnosticsLogger.cs
Quelle:
IDiagnosticsLogger.cs
Quelle:
IDiagnosticsLogger.cs
Quelle:
IDiagnosticsLogger.cs
Quelle:
IDiagnosticsLogger.cs
Quelle:
IDiagnosticsLogger.cs
Quelle:
IDiagnosticsLogger.cs

Bestimmt, ob eine EventData Instanz benötigt wird, je nachdem, ob ein DiagnosticSource, ein IDbContextLoggeroder ein IInterceptor für das angegebene Ereignis aktiviert ist.

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

Typparameter

TInterceptor

Parameter

definition
EventDefinitionBase

Die Definition des Ereignisses.

interceptor
TInterceptor

Der IInterceptor zu verwendende Wert, wenn er aktiviert ist; andernfalls NULL.

diagnosticSourceEnabled
Boolean

Legen Sie fest, true ob eine DiagnosticSource Aktiviert ist, false andernfalls.

simpleLogEnabled
Boolean

True, true wenn eine IDbContextLogger aktiviert ist; false andernfalls.

Gibt zurück

true wenn entweder eine Diagnosequelle, ein LogTo-Logger oder ein Interceptor aktiviert ist; false andernfalls.

Gilt für: