示例#1
0
 private static void Init()
 {
     _timerService         = new ChoTimerService <object>("GlobalTimer", OnTimerServiceCallback, null, DEFAULT_PERIOD, false);
     _timerService.Silent  = true;
     _timerService.Timeout = Timeout.Infinite;
     //_timerService.Start();
 }
示例#2
0
 private static void Shutdown()
 {
     lock (_padLock)
     {
         if (_timerService != null)
         {
             _timerService.Dispose();
             _timerService = null;
         }
     }
 }