Exemple #1
0
        //TODO:Да се прегледат методите, които определят дали може да бъде обработен обекта
        public Dictionary <TParamName, object> LoadConfiguration(Uri resUri)
        {
            if (StreamProvider == null)
            {
                throw new AccessViolationException("Stream Provider not set!");
            }

            Stream resStream = StreamProvider.GetResource(resUri);

            foreach (IConfigSource <TParamName> l in Sources)
            {
                if (l.CanParse(resUri, resStream))
                {
//          if (MapManager != null)
//            IR = MapManager.UnMap(l.LoadConfiguration(resStream));
//          else
                    IR = l.LoadConfiguration(resStream);
                }
            }

            return(IR);
        }