Beispiel #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();
 }
Beispiel #2
0
 private static void Shutdown()
 {
     lock (_padLock)
     {
         if (_timerService != null)
         {
             _timerService.Dispose();
             _timerService = null;
         }
     }
 }