private static AutomationConfig LoadAutomationConfig(string filePath) { var document = XDocument.Load(filePath); return(AutomationConfig.FromXml(document.Root)); }
public AutomationConfig LoadAutomationConfig(string fileName) => LoadConfig(fileName, element => AutomationConfig.FromXml(element));