public SettingsRegistrationService(IConfigInjectorLogger logger, ITypeProvider typeProvider, ISettingKeyConvention[] settingKeyConventions, ISettingsReader settingsReader, ISettingsOverrider settingsOverrider, SettingValueConverter settingValueConverter, bool allowEntriesInWebConfigThatDoNotHaveSettingsClasses, Action<IConfigurationSetting> registerAsSingleton) { if (logger == null) throw new ArgumentNullException("logger"); if (typeProvider == null) throw new ArgumentNullException("typeProvider"); if (settingKeyConventions == null) throw new ArgumentNullException("settingKeyConventions"); if (settingsReader == null) throw new ArgumentNullException("settingsReader"); if (settingsOverrider == null) throw new ArgumentNullException("settingsOverrider"); if (settingValueConverter == null) throw new ArgumentNullException("settingValueConverter"); if (registerAsSingleton == null) throw new ArgumentNullException("registerAsSingleton"); _logger = logger; _typeProvider = typeProvider; _settingKeyConventions = settingKeyConventions; _settingsReader = settingsReader; _settingsOverrider = settingsOverrider; _settingValueConverter = settingValueConverter; _allowEntriesInWebConfigThatDoNotHaveSettingsClasses = allowEntriesInWebConfigThatDoNotHaveSettingsClasses; _registerAsSingleton = registerAsSingleton; }
public SettingsRegistrationService(Assembly[] assemblies, Action<IConfigurationSetting> registerAsSingleton, bool allowEntriesInWebConfigThatDoNotHaveSettingsClasses, SettingValueConverter settingValueConverter, ISettingsReader settingsReader, ISettingKeyConvention[] settingKeyConventions) { _assemblies = assemblies; _registerAsSingleton = registerAsSingleton; _allowEntriesInWebConfigThatDoNotHaveSettingsClasses = allowEntriesInWebConfigThatDoNotHaveSettingsClasses; _settingValueConverter = settingValueConverter; _settingsReader = settingsReader; _settingKeyConventions = settingKeyConventions; }