Exemplo n.º 1
0
        public static List <CalculatedFile> CalculateFiles(ConfigMasterParsed configMaster)
        {
            var Result = new List <CalculatedFile>();

            foreach (var item in configMaster.GlobalRecipe.ListOfRecipeConfigFiles)
            {
                var newCalcFile = new CalculatedFile()
                {
                    Component      = item.Component,
                    ComputerName   = item.ComputerName,
                    Environment    = item.Environment,
                    ConfigFilename = item.ConfigFilePath
                };

                newCalcFile.ListOfEffectiveSettings = CalculateThisFile(configMaster, newCalcFile.ConfigFilename);

                Result.Add(newCalcFile);
            }

            return(Result);
        }
Exemplo n.º 2
0
        public static List<CalculatedFile> CalculateFiles(ConfigMasterParsed configMaster)
        {
            var Result = new List<CalculatedFile>();

            foreach (var item in configMaster.GlobalRecipe.ListOfRecipeConfigFiles)
            {
                var newCalcFile = new CalculatedFile()
                {
                    Component = item.Component,
                    ComputerName = item.ComputerName,
                    Environment = item.Environment,
                    ConfigFilename = item.ConfigFilePath
                };

                newCalcFile.ListOfEffectiveSettings = CalculateThisFile(configMaster, newCalcFile.ConfigFilename);

                Result.Add(newCalcFile);
            }

            return Result;
        }