コード例 #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
ファイル: Log4GridAppender.cs プロジェクト: hdxhan/Log4Grid
 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);
 }