示例#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);
 }