コード例 #1
0
        public static void WriteSettings(string affiliateApplication, Hashtable ht)
        {
            settings inSettings = new settings();

            foreach (object key in ht.Keys)
            {
                property prop = new property();
                prop.name  = key.ToString();
                prop.Value = (string)ht[key];
                inSettings.propertyCollection.Add(prop);
            }

            StringBuilder sb         = new StringBuilder();
            StringWriter  writer     = new StringWriter(sb);
            XmlSerializer serializer = new XmlSerializer(typeof(settings));

            serializer.Serialize(writer, inSettings);

            SSOHelper.SaveConfigInfo(affiliateApplication, sb.ToString());
        }
コード例 #2
0
 public static void WriteRawSettings(string affiliateApplication, string settingsXml)
 {
     SSOHelper.SaveConfigInfo(affiliateApplication, settingsXml);
 }
コード例 #3
0
 public static string GetRawSettings(string affiliateApplication, bool enableRemoteAccess)
 {
     return(SSOHelper.GetConfigInfo(affiliateApplication, enableRemoteAccess));
 }
コード例 #4
0
 public static bool AppExists(string appName)
 {
     return(SSOHelper.AppExists(appName));
 }
コード例 #5
0
 public static void DeleteApp(string appName)
 {
     SSOHelper.DeleteApp(appName);
 }
コード例 #6
0
 public static void CreateApp(string appName, string userGroup, string adminGroup)
 {
     SSOHelper.CreateApp(appName, userGroup, adminGroup);
 }
コード例 #7
0
 internal static void DeleteApp(string appName)
 {
     SSOHelper.DeleteApp(appName);
 }