/// <summary> /// Create server bound to given local endpoint /// </summary> /// <param name="proxyEndPoint">local endpoint to bind</param> /// <param name="httpProxy">proxy which will handle incoming requests</param> public HttpProxyServer(IPEndPoint proxyEndPoint, HttpProxy httpProxy) { Contract.Requires<ArgumentNullException>(proxyEndPoint != null, "proxyEndPoint"); Contract.Requires<ArgumentNullException>(httpProxy != null, "httpProxy"); _worker = new HttpProxyWorker(proxyEndPoint, httpProxy); }
/// <summary> /// Create server bound to given local endpoint /// </summary> /// <param name="proxyEndPoint">local endpoint to bind</param> /// <param name="httpProxy">proxy which will handle incoming requests</param> public HttpProxyServer(IPEndPoint proxyEndPoint, HttpProxy httpProxy) { Contract.Requires <ArgumentNullException>(proxyEndPoint != null, "proxyEndPoint"); Contract.Requires <ArgumentNullException>(httpProxy != null, "httpProxy"); _worker = new HttpProxyWorker(proxyEndPoint, httpProxy); }
/// <summary> /// Create server bound to given local endpoint /// </summary> /// <param name="proxyEndPoint">local endpoint to bind</param> /// <param name="httpProxy">proxy which will handle incoming requests</param> public HttpProxyServer(IPEndPoint proxyEndPoint, HttpProxy httpProxy) { ContractUtils.Requires <ArgumentNullException>(proxyEndPoint != null, "proxyEndPoint"); ContractUtils.Requires <ArgumentNullException>(httpProxy != null, "httpProxy"); _worker = new HttpProxyWorker(proxyEndPoint, httpProxy); _worker.Log += this.OnComponentLog; }