Język

IDiagnosticsLogger.NeedsEventData Metoda

Definicja

Przeciążenia

Nazwisko Opis
NeedsEventData(EventDefinitionBase, Boolean, Boolean)

Określa, EventData czy wystąpienie jest potrzebne na podstawie tego, czy dla danego zdarzenia jest DiagnosticSource włączone, czy IDbContextLogger też nie.

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

Określa, EventData czy wystąpienie jest potrzebne na podstawie tego, czy istnieje DiagnosticSourceelement , IDbContextLoggerczy IInterceptor włączony dla danego zdarzenia.

NeedsEventData(EventDefinitionBase, Boolean, Boolean)

Źródło:
IDiagnosticsLogger.cs
Źródło:
IDiagnosticsLogger.cs
Źródło:
IDiagnosticsLogger.cs
Źródło:
IDiagnosticsLogger.cs
Źródło:
IDiagnosticsLogger.cs
Źródło:
IDiagnosticsLogger.cs
Źródło:
IDiagnosticsLogger.cs

Określa, EventData czy wystąpienie jest potrzebne na podstawie tego, czy dla danego zdarzenia jest DiagnosticSource włączone, czy IDbContextLogger też nie.

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

Parametry

definition
EventDefinitionBase

Definicja zdarzenia.

diagnosticSourceEnabled
Boolean

Ustaw wartość na true , jeśli DiagnosticSource parametr jest włączony; false w przeciwnym razie.

simpleLogEnabled
Boolean

Wartość true, true jeśli IDbContextLogger element jest włączony; false w przeciwnym razie.

Zwraca

true jeśli źródło diagnostyczne lub rejestrator LogTo jest włączony; false w przeciwnym razie.

Dotyczy

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

Źródło:
IDiagnosticsLogger.cs
Źródło:
IDiagnosticsLogger.cs
Źródło:
IDiagnosticsLogger.cs
Źródło:
IDiagnosticsLogger.cs
Źródło:
IDiagnosticsLogger.cs
Źródło:
IDiagnosticsLogger.cs
Źródło:
IDiagnosticsLogger.cs

Określa, EventData czy wystąpienie jest potrzebne na podstawie tego, czy istnieje DiagnosticSourceelement , IDbContextLoggerczy IInterceptor włączony dla danego zdarzenia.

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

Parametry typu

TInterceptor

Parametry

definition
EventDefinitionBase

Definicja zdarzenia.

interceptor
TInterceptor

Wartość IInterceptor do użycia, jeśli jest włączona; w przeciwnym razie wartość null.

diagnosticSourceEnabled
Boolean

Ustaw wartość na true , jeśli DiagnosticSource parametr jest włączony; false w przeciwnym razie.

simpleLogEnabled
Boolean

Wartość true, true jeśli IDbContextLogger element jest włączony; false w przeciwnym razie.

Zwraca

true jeśli jest włączone źródło diagnostyczne, rejestrator LogTo lub przechwytywanie; false w przeciwnym razie.

Dotyczy