public ISettingsManager Create(PersistSetting persistSetting) { return(localSettingsManager ?? (localSettingsManager = SettingsManager.Create( _localSettingsService.Value, APP_NAME, _parserSetting.Value, _localeSettingsProvider.Value))); }
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"); } }
public SettingMetadata(string name, PersistSetting persistSetting) { Name = name; PersistSetting = persistSetting; }
public SettingAttribute(PersistSetting persistSetting) : base(typeof(ISetting)) { PersistSetting = persistSetting; }