static bool IsEtwEventEnabled(EtwDiagnosticTrace trace, int eventIndex) { if (trace.IsEtwProviderEnabled) { EnsureEventDescriptors(); return(trace.IsEtwEventEnabled(ref eventDescriptors[eventIndex])); } return(false); }
private static bool IsEtwEventEnabled(EtwDiagnosticTrace trace, int eventIndex) { if (!trace.IsEtwProviderEnabled) { return(false); } else { TraceCore.EnsureEventDescriptors(); return(trace.IsEtwEventEnabled(ref TraceCore.eventDescriptors[eventIndex])); } }