예제 #1
0
        public SettingsModel ReadSettings()
        {
            MySettingsProvider provider = new MySettingsProvider();

            return(new SettingsModel {
                BaseApiAddress = provider.BaseApiAddress,
                ClientId = provider.ClientId,
                ClientSecret = provider.ClientSecret,
                TokenEndpoint = provider.TokenEndpoint
            });
        }
예제 #2
0
        public void SaveSettings(SettingsModel settingsModel)
        {
            MySettingsProvider provider = new MySettingsProvider();

            //save data to store
            provider.BaseApiAddress = settingsModel.BaseApiAddress;
            provider.ClientId       = settingsModel.ClientId;
            provider.ClientSecret   = settingsModel.ClientSecret;
            provider.TokenEndpoint  = settingsModel.TokenEndpoint;

            provider.Save();
        }