private void PrepareProxy(HttpWebRequest request) { string proxyServer = state_.Config.Proxy.Server; if(string.IsNullOrEmpty(proxyServer)) return; request.Proxy = new WebProxy(proxyServer, state_.Config.Proxy.Port); }