当前位置: 首页>>代码示例>>C#>>正文


C# EtwDiagnosticTrace.ShouldTrace方法代码示例

本文整理汇总了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));
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:9,代码来源:TraceCore.Designer.cs

示例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));
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:9,代码来源:TraceCore.Designer.cs

示例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));
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:9,代码来源:TraceCore.Designer.cs

示例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));
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:9,代码来源:TraceCore.Designer.cs

示例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));
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:9,代码来源:TraceCore.Designer.cs

示例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));
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:9,代码来源:TraceCore.Designer.cs

示例7: ThrowingExceptionIsEnabled

		internal static bool ThrowingExceptionIsEnabled(EtwDiagnosticTrace trace)
		{
			if (trace.ShouldTrace(TraceEventLevel.Warning))
			{
				return true;
			}
			else
			{
				return TraceCore.IsEtwEventEnabled(trace, 3);
			}
		}
开发者ID:nickchal,项目名称:pash,代码行数:11,代码来源:TraceCore.Designer.cs

示例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));
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:9,代码来源:TraceCore.Designer.cs

示例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));
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:9,代码来源:TraceCore.Designer.cs

示例10: TraceCodeEventLogVerboseIsEnabled

		internal static bool TraceCodeEventLogVerboseIsEnabled(EtwDiagnosticTrace trace)
		{
			if (trace.ShouldTrace(TraceEventLevel.Verbose))
			{
				return true;
			}
			else
			{
				return TraceCore.IsEtwEventEnabled(trace, 8);
			}
		}
开发者ID:nickchal,项目名称:pash,代码行数:11,代码来源:TraceCore.Designer.cs

示例11: TraceCodeEventLogWarningIsEnabled

		internal static bool TraceCodeEventLogWarningIsEnabled(EtwDiagnosticTrace trace)
		{
			if (trace.ShouldTrace(TraceEventLevel.Warning))
			{
				return true;
			}
			else
			{
				return TraceCore.IsEtwEventEnabled(trace, 9);
			}
		}
开发者ID:nickchal,项目名称:pash,代码行数:11,代码来源:TraceCore.Designer.cs

示例12: TraceCodeEventLogInfoIsEnabled

		internal static bool TraceCodeEventLogInfoIsEnabled(EtwDiagnosticTrace trace)
		{
			if (trace.ShouldTrace(TraceEventLevel.Informational))
			{
				return true;
			}
			else
			{
				return TraceCore.IsEtwEventEnabled(trace, 7);
			}
		}
开发者ID:nickchal,项目名称:pash,代码行数:11,代码来源:TraceCore.Designer.cs

示例13: TraceCodeEventLogErrorIsEnabled

		internal static bool TraceCodeEventLogErrorIsEnabled(EtwDiagnosticTrace trace)
		{
			if (trace.ShouldTrace(TraceEventLevel.Error))
			{
				return true;
			}
			else
			{
				return TraceCore.IsEtwEventEnabled(trace, 6);
			}
		}
开发者ID:nickchal,项目名称:pash,代码行数:11,代码来源:TraceCore.Designer.cs

示例14: TraceCodeEventLogCriticalIsEnabled

		internal static bool TraceCodeEventLogCriticalIsEnabled(EtwDiagnosticTrace trace)
		{
			if (trace.ShouldTrace(TraceEventLevel.Critical))
			{
				return true;
			}
			else
			{
				return TraceCore.IsEtwEventEnabled(trace, 5);
			}
		}
开发者ID:nickchal,项目名称:pash,代码行数:11,代码来源:TraceCore.Designer.cs

示例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));
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:9,代码来源:TraceCore.Designer.cs


注:本文中的System.Runtime.Diagnostics.EtwDiagnosticTrace.ShouldTrace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。