public void WriteDiagnosticInfo(TraceEventType evtType, DiagnosticsHelper.TraceEventID evtID, string message, params object[] args) { if (null != _wd) { _wd.WriteDiagnosticInfo(_ts, evtType, evtID, "tid:" + Thread.CurrentThread.ManagedThreadId.ToString() + " " + _class_method + ":" + message, args); } }
public AutoEnterExitTrace(DiagnosticsHelper wd, TraceSource ts, string class_method) { _wd = wd; _ts = ts; _class_method = class_method; if (null != wd) { wd.WriteDiagnosticInfo(ts, TraceEventType.Verbose, DiagnosticsHelper.TraceEventID.traceFunctionEntry, string.Format("tid:{0} Entering {1}", Thread.CurrentThread.ManagedThreadId, class_method)); } }