Esempio n. 1
0
 static bool IsEtwEventEnabled(EtwDiagnosticTrace trace, int eventIndex)
 {
     if (trace.IsEtwProviderEnabled)
     {
         EnsureEventDescriptors();
         return(trace.IsEtwEventEnabled(ref eventDescriptors[eventIndex]));
     }
     return(false);
 }
Esempio n. 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]));
     }
 }