Added macros API

WIP Job backend
This commit is contained in:
Lucio Maranta
2018-09-20 13:03:02 +02:00
parent 704eac61d0
commit 13a143957f
30 changed files with 324 additions and 17 deletions
+13
View File
@@ -28,6 +28,7 @@ namespace Step.Config
ReadAlarmsConfig();
ReadHeadsConfig();
ReadToolManagerConfig();
ReadMacros();
}
catch (System.Xml.XmlException ex)
{
@@ -385,6 +386,18 @@ namespace Step.Config
.FirstOrDefault();
}
public static void ReadMacros()
{
XDocument xmlConfigFile = GetXmlHandlerWithValidator(MACROS_CONFIG_SCHEMA_PATH, MACROS_CONFIG_PATH);
// Read config from XML file
MacrosConfig = xmlConfigFile
.Descendants("macros")
.Elements()
.Select(x => x.Value)
.ToList();
}
#endregion Read config from file from configuration
}
}