public void Flush() { foreach (AppSection a in Enum.GetValues(typeof(AppSection))) { LognLM l = (LognLM)reps[a]; if (l != null) { l.TS.Flush(); } } }
public LMLoggers(NCCConfig.Config cfg) { this.cfg = cfg; reps = new Hashtable((int)AppSection.Rarrr); int pid = Process.GetCurrentProcess().Id; foreach (AppSection wp in Enum.GetValues(typeof(AppSection))) { LognLM l = new LognLM(wp.ToString(), cfg, pid); reps.Add(wp, l); } }