internal void Stop() { if (!IsXmlFile) { return; } lock (_syncRoot) { if (isStopRequested) { return; } else { isStopRequested = true; } } OnTimerServiceCallback(null); if (_timerService != null) { _timerService.Stop(); } if (_queuedMsgService != null) { _queuedMsgService.Stop(); } if (_configurationChangeWatcher != null) { _configurationChangeWatcher.StopWatching(); } }
internal void Stop() { lock (_syncRoot) { OnTimerServiceCallback(null); _timerService.Stop(); _queuedMsgService.Stop(); } }
internal void Stop() { lock (_iniDocument.SyncRoot) { OnTimerServiceCallback(null); if (_timerService != null) { _timerService.Stop(); } if (_queuedMsgService != null) { _queuedMsgService.Stop(); } } }