Example #1
0
        /// <summary>
        /// Sets file watcher sorted dictionary from file watcher controller.
        /// </summary>
        private void SetFileWatcherSortedDictionary()
        {
            Dictionary <string, FileWatcherConfigurationSet> tempDictionary =
                FileWatcherController.FileWatcherConfiguration;

            _fileWatcherSortedDictionary = new SortedDictionary <string, FileWatcherInfo>();

            foreach (KeyValuePair <string, FileWatcherConfigurationSet> keyValuePair in tempDictionary)
            {
                FileWatcherInfo fileWatcherInfo = new FileWatcherInfo();
                fileWatcherInfo.Enabled = keyValuePair.Value.StartDaemon;
                _fileWatcherSortedDictionary.Add(keyValuePair.Key, fileWatcherInfo);
            }
        }
Example #2
0
        /// <summary>
        /// Sets file watcher sorted dictionary from file watcher controller.
        /// </summary>
        private void SetFileWatcherSortedDictionary()
        {
            Dictionary<string, FileWatcherConfigurationSet> tempDictionary =
                FileWatcherController.FileWatcherConfiguration;

            _fileWatcherSortedDictionary = new SortedDictionary<string, FileWatcherInfo>();

            foreach (KeyValuePair<string, FileWatcherConfigurationSet> keyValuePair in tempDictionary)
            {
                FileWatcherInfo fileWatcherInfo = new FileWatcherInfo();
                fileWatcherInfo.Enabled = keyValuePair.Value.StartDaemon;
                _fileWatcherSortedDictionary.Add(keyValuePair.Key, fileWatcherInfo);
            }
        }