Added macros API
WIP Job backend
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user