コード例 #1
0
ファイル: HttpProxyServer.cs プロジェクト: hanswolff/FryProxy
        /// <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);
        }
コード例 #2
0
ファイル: HttpProxyServer.cs プロジェクト: hanswolff/FryProxy
        /// <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);
        }
コード例 #3
0
        /// <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;
        }