Ejemplo n.º 1
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;
 }
Ejemplo n.º 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);
        }