Пример #1
0
        private static AutomationConfig LoadAutomationConfig(string filePath)
        {
            var document = XDocument.Load(filePath);

            return(AutomationConfig.FromXml(document.Root));
        }
Пример #2
0
 public AutomationConfig LoadAutomationConfig(string fileName) => LoadConfig(fileName, element => AutomationConfig.FromXml(element));