Exemple #1
0
        public List <CommandConfiguration> GetCommands(string configFile)
        {
            XmlDocument xmlDoc = new XmlDocument();

            xmlDoc.Load(configFile);
            var commandsConfigurationSource = new CommandsConfigurationXmlSource(xmlDoc);
            var commandConfigs = commandsConfigurationSource.GetCommandConfigurations().Where(c => c.Enabled).ToList();
            var cmdBuilder     = new CommandsBuilder(commandConfigs, commandsConfigurationSource.Tokens);

            return(cmdBuilder.GetTokenizedConfiguration());
        }