Пример #1
0
 static bool IsEtwEventEnabled(EtwDiagnosticTrace trace, int eventIndex)
 {
     if (trace.IsEtwProviderEnabled)
     {
         EnsureEventDescriptors();
         return(trace.IsEtwEventEnabled(ref eventDescriptors[eventIndex]));
     }
     return(false);
 }
Пример #2
0
 private static bool IsEtwEventEnabled(EtwDiagnosticTrace trace, int eventIndex)
 {
     if (!trace.IsEtwProviderEnabled)
     {
         return(false);
     }
     else
     {
         TraceCore.EnsureEventDescriptors();
         return(trace.IsEtwEventEnabled(ref TraceCore.eventDescriptors[eventIndex]));
     }
 }