public void Open(string url, string protocol, IDictionary <string, string> headers)
 {
     try
     {
         _controller       = new BridgeController();
         _controller.Proxy = this;
         _controller.Open(url, protocol, headers);
     }
     catch (Exception ex)
     {
         OnError(ex.Message);
     }
 }
Esempio n. 2
0
 public void Open(string url, string protocol = null)
 {
     try
     {
         _controller       = new BridgeController();
         _controller.Proxy = this;
         _controller.Proxy = this;
         _controller.Proxy = this;
         _controller.Open(url, protocol);
     }
     catch (Exception ex)
     {
         OnError(ex.Message);
     }
 }
Esempio n. 3
0
 public void Open(string url, string protocol, IDictionary <string, string> headers)
 {
     try
     {
         var ssl = SSLContext.GetInstance("TLS");
         ssl.Init(null, null, null);
         _controller       = new BridgeController(ssl);
         _controller.Proxy = this;
         _controller.Open(url, protocol, headers);
     }
     catch (Exception ex)
     {
         OnError(ex.Message);
     }
 }
 public void Open(string url, string protocol = null, string authToken = null)
 {
     try
     {
         _controller = new BridgeController();
         _controller.Proxy = this;
         _controller.Proxy = this;
         _controller.Proxy = this;
         _controller.Open(url, protocol, authToken);
     }
     catch (Exception ex)
     {
         OnError(ex.Message);
     }
 }
 public void Open(string url, string protocol, IDictionary <string, string> headers)
 {
     try
     {
         _controller = new BridgeController
         {
             Proxy = this
         };
         if (_isAllTrusted)
         {
             _controller.SetIsAllTrusted();
         }
         _controller.Open(url, protocol, headers);
     }
     catch (Exception ex)
     {
         OnError(ex);
     }
 }