Exemple #1
0
 public static void SaveConfiguration(List <string> configs)
 {
     TargetSetter.Open(CONFIG_FILE);
     try
     {
         TargetSetter.GenerateFile(configs);
     }
     finally
     {
         TargetSetter.Close();
     }
 }
Exemple #2
0
        private static void ProcessATarget(string target, List <string> parms)
        {
            string siteId      = ListParser.Get("SITE-ID=", parms);
            string serviceUrl  = ListParser.Get("SERVICE-URL=", parms);
            string servicePort = ListParser.Get("SERVICE-PORT=", parms);
            string crmUrl      = ListParser.Get("CRM-URL=", parms);
            string crmPort     = ListParser.Get("CRM-PORT=", parms);

            TargetSetter.Open(target);
            try
            {
                TargetSetter.Replace(BuildUrl(serviceUrl, servicePort, "0"), BuildUrl(serviceUrl, servicePort, siteId));
                TargetSetter.Replace(BuildUrl(crmUrl, crmPort, "0"), BuildUrl(crmUrl, crmPort, siteId));
            }
            finally
            {
                TargetSetter.Close();
            }
        }