예제 #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);
 }
예제 #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);
 }