public static FileProcessDescriptorSettings GetConfig() { FileProcessDescriptorSettings settings = (FileProcessDescriptorSettings)ConfigurationBroker.GetSection("fileProcessDescriptorSettings"); ConfigurationExceptionHelper.CheckSectionNotNull(settings, "fileProcessDescriptorSettings"); return(settings); }
protected override void ClearAllXml() { string rootPath = EnvironmentHelper.ReplaceEnvironmentVariablesInString(FileProcessDescriptorSettings.GetConfig().RootPath); foreach (string fileName in Directory.EnumerateFiles(rootPath, "*.xml")) { File.Delete(fileName); } }
private static string GetPath(string processKey) { string rootPath = EnvironmentHelper.ReplaceEnvironmentVariablesInString(FileProcessDescriptorSettings.GetConfig().RootPath); return(Path.Combine(rootPath, processKey + ".xml")); }