Exemplo n.º 1
0
 public Log4GridAppender()
 {
     mProcess    = System.Diagnostics.Process.GetCurrentProcess();
     mCpuCounter = new CPUCounter(mProcess.ProcessName);
     System.Threading.ThreadPool.QueueUserWorkItem(OnSend);
     mTimer = new System.Threading.Timer(OnStat, null, 1000, 1000);
 }
Exemplo n.º 2
0
 public Log4GridAppender()
 {
     mProcess = System.Diagnostics.Process.GetCurrentProcess();
     mCpuCounter = new CPUCounter(mProcess.ProcessName);
     System.Threading.ThreadPool.QueueUserWorkItem(OnSend);
     mTimer = new System.Threading.Timer(OnStat, null, 1000, 1000);
 }