Esempio n. 1
0
 public ISettingsManager Create(PersistSetting persistSetting)
 {
     return(localSettingsManager
            ?? (localSettingsManager =
                    SettingsManager.Create(
                        _localSettingsService.Value,
                        APP_NAME,
                        _parserSetting.Value,
                        _localeSettingsProvider.Value)));
 }
Esempio n. 2
0
        public ISettingsManager Create(PersistSetting persistSetting)
        {
            switch (persistSetting)
            {
            case PersistSetting.Local:
                return(localSettingsManager
                       ?? (localSettingsManager =
                               SettingsManager.Create(_localSettingsService.Value, APP_NAME, _parserSetting.Value, _localeSettingsProvider.Value)));

            case PersistSetting.Remote:
                return(remoteSettingsManager
                       ?? (remoteSettingsManager =
                               SettingsManager.Create(_remoteSettingsService.Value, APP_NAME, _parserSetting.Value, _remoteSettingsProvider.Value)));

            default:
                throw new ArgumentOutOfRangeException("persistSetting");
            }
        }
Esempio n. 3
0
 public SettingMetadata(string name, PersistSetting persistSetting)
 {
     Name           = name;
     PersistSetting = persistSetting;
 }
Esempio n. 4
0
 public SettingAttribute(PersistSetting persistSetting)
     : base(typeof(ISetting))
 {
     PersistSetting = persistSetting;
 }