예제 #1
0
        private static void V1()
        {
            List <ProxyInfo> pis = new List <ProxyInfo>();

            pis.Add(new ProxyInfo
            {
                HttpProxy = new WebProxy("127.0.0.1:8888"),
                RTT       = 45
            });
            ProxyInfoParser.WriteConfig("F:/dev/a.xml", pis);
        }
예제 #2
0
        private void DoValidateCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            List <ProxyInfo> pis     = proxyManager.GoodProxiesQueue.ToList();
            ProxyInfo        current = selectiveProxyGuide.CurrentProxyInfo;

            if (current != null)
            {
                pis.Insert(0, current);
            }
            ProxyInfoParser.WriteConfig(proxyInfoPath, pis);
        }