Example #1
0
 public HttpProxyListener(IPEndPoint endPoint, int backlog, ITunnelFactory tunnelFactory)
 {
     _endPoint      = endPoint ?? throw new ArgumentNullException(nameof(endPoint));
     _backlog       = backlog;
     _tunnelFactory = tunnelFactory ?? throw new ArgumentNullException(nameof(tunnelFactory));
 }
 public HttpProxyProcessor(ITunnelFactory tunnelFactory, Stream inboundStream)
 {
     _tunnelFactory = tunnelFactory;
     _inboundStream = inboundStream;
 }