コード例 #1
0
 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);
     }
 }
コード例 #2
0
 private void StartProxy()
 {
     try
     {
         if (Config.settings.httpProxy.startProxy)
         {
             proxy = new BrowserMobProxy();
             proxy.StartServer();
             proxy.CreateProxy();
             proxy.CreateHar();
         }
     }
     catch (Exception)
     {
     }
 }