private static bool WriteEtwEvent(DiagnosticTrace trace, int eventIndex, string eventParam0, string eventParam1) { TraceCore.EnsureEventDescriptors(); EtwProvider etwProvider = trace.EtwProvider; object[] objArray = new object[] { eventParam0, eventParam1 }; return(etwProvider.WriteEvent(ref TraceCore.eventDescriptors[eventIndex], objArray)); }
private static bool IsEtwEventEnabled(DiagnosticTrace trace, int eventIndex) { TraceCore.EnsureEventDescriptors(); return(trace.IsEtwEventEnabled(ref TraceCore.eventDescriptors[eventIndex])); }
private static void WriteTraceSource(DiagnosticTrace trace, int eventIndex, string description, TracePayload payload) { TraceCore.EnsureEventDescriptors(); trace.WriteTraceSource(ref TraceCore.eventDescriptors[eventIndex], description, payload); }