public ConfigurationCollection Get()
 {
     var collectionList = new List<ConfigurationCollection>();
     foreach (var path in paths)
     {
         var reader = ReaderFactory.CreateReader(path);
         var config = reader.ReadConfig();
         ValidateCollection(config, path);
         collectionList.Add(config);
     }
     var configMerger = new ConfigMerger(collectionList);
     var merged = configMerger.GetMerged();
     ValidateCollection(merged, null);
     return merged;
 }
Exemple #2
0
        public ConfigurationCollection Get()
        {
            var collectionList = new List <ConfigurationCollection>();

            foreach (var path in paths)
            {
                var reader = ReaderFactory.CreateReader(path);
                var config = reader.ReadConfig();
                ValidateCollection(config, path);
                collectionList.Add(config);
            }
            var configMerger = new ConfigMerger(collectionList);
            var merged       = configMerger.GetMerged();

            ValidateCollection(merged, null);
            return(merged);
        }