private void StartProxy() { try { if (Config.Settings.httpProxy.startProxy) { proxy = new BrowserMobProxy(); proxy.StartServer(); proxy.CreateProxy(); proxy.CreateHar(); } } catch (Exception) { } }
private void StartProxyServer() { try { proxy = new BrowserMobProxy(); if (Config.Settings.httpProxy.startProxy) { proxy.KillOldProxy(); proxy.StartServer(); } } catch (Exception e) { throw new Exception("Error caught starting BMP Proxy Server : " + e.Message); } }