/// <summary> /// Shuts down the scheduler. Does not wait for jobs to complete. /// </summary> protected override void OnStop() { if (null != jobHandler) { jobHandler.Dispose(); } if (null != configFileWatcher) { configFileWatcher.EnableRaisingEvents = false; configFileWatcher.Dispose(); } new LogHandler().LogMessage(LogHandler.MessageType.INFO, "The MySQL Backup Service has been stopped."); }