public void Event(ref System.Diagnostics.Eventing.EventDescriptor eventDescriptor, string description) { if (this.TracingEnabled) { TracePayload serializedPayload = DiagnosticTrace.GetSerializedPayload(null, null, null); this.WriteTraceSource(ref eventDescriptor, description, serializedPayload); } }
public static TracePayload GetSerializedPayload(object source, TraceRecord traceRecord, Exception exception) { return(DiagnosticTrace.GetSerializedPayload(source, traceRecord, exception, false)); }