private void WorkerThreadFunc() { FileWatcherLogic.StartMonitoring(); GetSettings(); FileWatcherLogic.ConfigureWatcher(); while (!_shutdownEvent.WaitOne(0)) { ConfigurationManager.RefreshSection("appSettings"); GetSettings(); FileWatcherLogic.UpdateWatcherSettings(); Thread.Sleep(1000); } }