public static FileProcessDescriptorSettings GetConfig()
        {
            FileProcessDescriptorSettings settings =
                (FileProcessDescriptorSettings)ConfigurationBroker.GetSection("fileProcessDescriptorSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(settings, "fileProcessDescriptorSettings");

            return(settings);
        }
示例#2
0
        protected override void ClearAllXml()
        {
            string rootPath = EnvironmentHelper.ReplaceEnvironmentVariablesInString(FileProcessDescriptorSettings.GetConfig().RootPath);

            foreach (string fileName in Directory.EnumerateFiles(rootPath, "*.xml"))
            {
                File.Delete(fileName);
            }
        }
示例#3
0
        private static string GetPath(string processKey)
        {
            string rootPath = EnvironmentHelper.ReplaceEnvironmentVariablesInString(FileProcessDescriptorSettings.GetConfig().RootPath);

            return(Path.Combine(rootPath, processKey + ".xml"));
        }