예제 #1
0
 public override void UpdateSettings()
 {
     if (SettingsEditor.IsValid && SettingsEditor.IsDirty)
     {
         var config = (CasConfig)SettingsEditor.DataSource;
         CasConfig.UpdateConfig(config);
     }
 }
        public static void SaveSettings(string service, int portalId, CasProviderSettings settings)
        {
            var config = new CasConfig(service, portalId)
            {
                ServerUrl    = settings.ServerUrl,
                APIKey       = settings.ApiKey,
                APISecret    = settings.ApiSecret,
                AutoRedirect = settings.AutoRedirect,
                Enabled      = settings.Enabled
            };

            CasConfig.UpdateConfig(config);
        }