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