private static void WriteListeners(TraceClass info) { try { foreach (TraceServerListener listerner in Listeners) { listerner.DoWrite(info); } } catch (Exception ex) { throw ex; } }
protected override void Write(TraceClass info) { TraceData.Enqueue(info); }
public static void Trace(TraceClass msg) { var task = System.Threading.Tasks.Task.Factory.StartNew(() => { WriteListeners(msg); }); }
public virtual void DoWrite(TraceClass info) { Write(info); }
protected abstract void Write(TraceClass info);