Language

IDiagnosticsLogger.NeedsEventData メソッド

定義

オーバーロード

Name 説明
NeedsEventData(EventDefinitionBase, Boolean, Boolean)

特定のイベントに対してDiagnosticSourceまたはIDbContextLoggerが有効になっているかどうかに基づいて、EventData インスタンスが必要かどうかを判断します。

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

特定のイベントに対してDiagnosticSource、IDbContextLogger、またはIInterceptorが有効になっているかどうかに基づいて、EventData インスタンスが必要かどうかを判断します。

NeedsEventData(EventDefinitionBase, Boolean, Boolean)

ソース:
IDiagnosticsLogger.cs
ソース:
IDiagnosticsLogger.cs
ソース:
IDiagnosticsLogger.cs
ソース:
IDiagnosticsLogger.cs
ソース:
IDiagnosticsLogger.cs
ソース:
IDiagnosticsLogger.cs
ソース:
IDiagnosticsLogger.cs

特定のイベントに対してDiagnosticSourceまたはIDbContextLoggerが有効になっているかどうかに基づいて、EventData インスタンスが必要かどうかを判断します。

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

パラメーター

definition
EventDefinitionBase

イベントの定義。

diagnosticSourceEnabled
Boolean

DiagnosticSourceが有効になっている場合はtrueに設定false。それ以外の場合は。

simpleLogEnabled
Boolean

true IDbContextLoggerが有効になっている場合はtrue。それ以外の場合はfalse。

戻り値

true 診断ソースまたは LogTo ロガーのいずれかが有効な場合。それ以外の場合 false 。

適用対象

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

ソース:
IDiagnosticsLogger.cs
ソース:
IDiagnosticsLogger.cs
ソース:
IDiagnosticsLogger.cs
ソース:
IDiagnosticsLogger.cs
ソース:
IDiagnosticsLogger.cs
ソース:
IDiagnosticsLogger.cs
ソース:
IDiagnosticsLogger.cs

特定のイベントに対してDiagnosticSource、IDbContextLogger、またはIInterceptorが有効になっているかどうかに基づいて、EventData インスタンスが必要かどうかを判断します。

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

型パラメーター

TInterceptor

パラメーター

definition
EventDefinitionBase

イベントの定義。

interceptor
TInterceptor

有効な場合に使用する IInterceptor 。それ以外の場合は null。

diagnosticSourceEnabled
Boolean

DiagnosticSourceが有効になっている場合はtrueに設定false。それ以外の場合は。

simpleLogEnabled
Boolean

true IDbContextLoggerが有効になっている場合はtrue。それ以外の場合はfalse。

戻り値

true 診断ソース、LogTo ロガー、またはインターセプターが有効な場合。それ以外の場合 false 。

適用対象