Exemplo n.º 1
0
        bool IConfiguration.Save()
        {
            bool result = false;

            foreach (IConfigurationItem item in _RootConfigurationItem.ConfigurationItems)
            {
                foreach (IConfigurationSource source in _ConfigurationSources)
                {
                    item.SaveTo(source);
                }
            }

            try
            {
                foreach (IConfigurationSource source in _ConfigurationSources)
                {
                    source.Save();
                }

                _RootConfigurationItem.Reset();

                result = true;
            }
            catch (Exception exc)
            {
                //log.Debug("ConfigurationRepository.Save" + exc.ToString());
            }

            return(result);
        } //bool IConfiguration.Save()