コード例 #1
0
 public void SetProxylist(List <Proxy> proxies, bool join)
 {
     if (join)
     {
         Proxies.AddRange(proxies);
     }
     else
     {
         Proxies = proxies;
     }
 }
コード例 #2
0
        private void LoadConfig()
        {
            try
            {
                Servers.Clear();
                Servers.AddRange(GetAvailabilityGroupList(xml_config, "Servers", "Server", "ServerId"));

                Proxies.Clear();
                Proxies.AddRange(GetAvailabilityGroupList(xml_config, "Proxies", "Proxy", "ProxyId"));
            }
            catch (Exception e)
            {
                Log.WriteLine(LogLevel.Error, "There are errors in your configuration file.");
                Log.WriteLine(e.Message);
                Global.Exit();
            }
        }