Ejemplo n.º 1
0
        public void Initialize()
        {
            var context = new SettingDefinitionProviderContext(this);

            foreach (var providerType in _settingsConfiguration.Providers)
            {
                using (var provider = CreateProvider(providerType))
                {
                    foreach (var settings in provider.Object.GetSettingDefinitions(context))
                    {
                        _settings[settings.Name] = settings;
                    }
                }
            }
        }
 /// <summary>
 /// Gets all setting definitions provided by this provider.
 /// </summary>
 /// <returns>List of settings</returns>
 public abstract IEnumerable <SettingDefinition> GetSettingDefinitions(SettingDefinitionProviderContext context);