Example #1
0
        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));
        }
Example #2
0
 private static bool IsEtwEventEnabled(DiagnosticTrace trace, int eventIndex)
 {
     TraceCore.EnsureEventDescriptors();
     return(trace.IsEtwEventEnabled(ref TraceCore.eventDescriptors[eventIndex]));
 }
Example #3
0
 private static void WriteTraceSource(DiagnosticTrace trace, int eventIndex, string description, TracePayload payload)
 {
     TraceCore.EnsureEventDescriptors();
     trace.WriteTraceSource(ref TraceCore.eventDescriptors[eventIndex], description, payload);
 }