本文整理汇总了C#中System.Runtime.Diagnostics.EtwDiagnosticTrace.ShouldTrace方法的典型用法代码示例。如果您正苦于以下问题:C# EtwDiagnosticTrace.ShouldTrace方法的具体用法?C# EtwDiagnosticTrace.ShouldTrace怎么用?C# EtwDiagnosticTrace.ShouldTrace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Runtime.Diagnostics.EtwDiagnosticTrace
的用法示例。
在下文中一共展示了EtwDiagnosticTrace.ShouldTrace方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandledExceptionWarningIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=57404, Level=warning, Channel=Analytic
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool HandledExceptionWarningIsEnabled(EtwDiagnosticTrace trace)
{
return (trace.ShouldTrace(TraceEventLevel.Warning) || TraceCore.IsEtwEventEnabled(trace, 10));
}
示例2: TraceCodeEventLogVerboseIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=57402, Level=verbose, Channel=Debug
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool TraceCodeEventLogVerboseIsEnabled(EtwDiagnosticTrace trace)
{
return (trace.ShouldTrace(TraceEventLevel.Verbose) || TraceCore.IsEtwEventEnabled(trace, 8));
}
示例3: TraceCodeEventLogWarningIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=57403, Level=warning, Channel=Debug
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool TraceCodeEventLogWarningIsEnabled(EtwDiagnosticTrace trace)
{
return (trace.ShouldTrace(TraceEventLevel.Warning) || TraceCore.IsEtwEventEnabled(trace, 9));
}
示例4: TraceCodeEventLogErrorIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=57400, Level=error, Channel=Debug
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool TraceCodeEventLogErrorIsEnabled(EtwDiagnosticTrace trace)
{
return (trace.ShouldTrace(TraceEventLevel.Error) || TraceCore.IsEtwEventEnabled(trace, 6));
}
示例5: TraceCodeEventLogInfoIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=57401, Level=informational, Channel=Debug
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool TraceCodeEventLogInfoIsEnabled(EtwDiagnosticTrace trace)
{
return (trace.ShouldTrace(TraceEventLevel.Informational) || TraceCore.IsEtwEventEnabled(trace, 7));
}
示例6: AppDomainUnloadIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=57393, Level=informational, Channel=Debug
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool AppDomainUnloadIsEnabled(EtwDiagnosticTrace trace)
{
return (trace.ShouldTrace(TraceEventLevel.Informational) || TraceCore.IsEtwEventEnabled(trace, 0));
}
示例7: ThrowingExceptionIsEnabled
internal static bool ThrowingExceptionIsEnabled(EtwDiagnosticTrace trace)
{
if (trace.ShouldTrace(TraceEventLevel.Warning))
{
return true;
}
else
{
return TraceCore.IsEtwEventEnabled(trace, 3);
}
}
示例8: ShipAssertExceptionMessageIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=57395, Level=error, Channel=Analytic
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool ShipAssertExceptionMessageIsEnabled(EtwDiagnosticTrace trace)
{
return (trace.ShouldTrace(TraceEventLevel.Error) || TraceCore.IsEtwEventEnabled(trace, 2));
}
示例9: ThrowingExceptionIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=57396, Level=warning, Channel=Analytic
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool ThrowingExceptionIsEnabled(EtwDiagnosticTrace trace)
{
return (trace.ShouldTrace(TraceEventLevel.Warning) || TraceCore.IsEtwEventEnabled(trace, 3));
}
示例10: TraceCodeEventLogVerboseIsEnabled
internal static bool TraceCodeEventLogVerboseIsEnabled(EtwDiagnosticTrace trace)
{
if (trace.ShouldTrace(TraceEventLevel.Verbose))
{
return true;
}
else
{
return TraceCore.IsEtwEventEnabled(trace, 8);
}
}
示例11: TraceCodeEventLogWarningIsEnabled
internal static bool TraceCodeEventLogWarningIsEnabled(EtwDiagnosticTrace trace)
{
if (trace.ShouldTrace(TraceEventLevel.Warning))
{
return true;
}
else
{
return TraceCore.IsEtwEventEnabled(trace, 9);
}
}
示例12: TraceCodeEventLogInfoIsEnabled
internal static bool TraceCodeEventLogInfoIsEnabled(EtwDiagnosticTrace trace)
{
if (trace.ShouldTrace(TraceEventLevel.Informational))
{
return true;
}
else
{
return TraceCore.IsEtwEventEnabled(trace, 7);
}
}
示例13: TraceCodeEventLogErrorIsEnabled
internal static bool TraceCodeEventLogErrorIsEnabled(EtwDiagnosticTrace trace)
{
if (trace.ShouldTrace(TraceEventLevel.Error))
{
return true;
}
else
{
return TraceCore.IsEtwEventEnabled(trace, 6);
}
}
示例14: TraceCodeEventLogCriticalIsEnabled
internal static bool TraceCodeEventLogCriticalIsEnabled(EtwDiagnosticTrace trace)
{
if (trace.ShouldTrace(TraceEventLevel.Critical))
{
return true;
}
else
{
return TraceCore.IsEtwEventEnabled(trace, 5);
}
}
示例15: HandledExceptionErrorIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=57405, Level=error, Channel=Operational
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool HandledExceptionErrorIsEnabled(EtwDiagnosticTrace trace)
{
return (trace.ShouldTrace(TraceEventLevel.Error) || TraceCore.IsEtwEventEnabled(trace, 15));
}