Example #1
0
 private static bool IsEtwEventEnabled(DiagnosticTrace trace, int eventIndex)
 {
     TraceCore.EnsureEventDescriptors();
     return(trace.IsEtwEventEnabled(ref TraceCore.eventDescriptors[eventIndex]));
 }
Example #2
0
 private static void WriteTraceSource(DiagnosticTrace trace, int eventIndex, string description, TracePayload payload)
 {
     TraceCore.EnsureEventDescriptors();
     trace.WriteTraceSource(ref TraceCore.eventDescriptors[eventIndex], description, payload);
 }