Ejemplo n.º 1
0
        /// <summary>
        /// Loads Configuration List from file and Checks their
        /// validity. If valid, assign List to Configurations
        /// Property in Domain Settings
        /// </summary>
        private void LoadConfiguration()
        {
            _configRepo = new ConfigurationRepository();
            var objConfig = _configRepo.ReadSourceConfig();

            if (_configRepo.IsConfigurationValid(objConfig))
            {
                if (objConfig.ConfigurationList.HasItems <ConfigurationModel>())
                {
                    _configurations = new Configurations();
                    _configurations.AddConfigurationList(objConfig.ConfigurationList);
                }
            }
        }