Example #1
0
 public static void CheckProviderName([NotNull] this ISettingValueProviderManager manager, string providerName)
 {
     if (!manager.Providers.Any(t => t.Name == providerName))
     {
         throw new ArgumentNullException($"SettingValueProviderName: \"{providerName}\" can not be null!");
     }
 }
Example #2
0
 public SettingModelManager(ISettingModelTypeManager settingModelTypeManager,
                            ISettingManager settingManager,
                            ISettingValueProviderManager settingValueProviderManager)
 {
     _settingModelTypeManager     = settingModelTypeManager;
     _settingManager              = settingManager;
     _settingValueProviderManager = settingValueProviderManager;
 }
Example #3
0
 public SettingProvider(
     ISettingDefinitionManager settingDefinitionManager,
     ISettingEncryptionService settingEncryptionService,
     ISettingValueProviderManager settingValueProviderManager)
 {
     SettingDefinitionManager    = settingDefinitionManager;
     SettingEncryptionService    = settingEncryptionService;
     SettingValueProviderManager = settingValueProviderManager;
 }