예제 #1
0
 public ProxyListener(TestContext ctx, BuiltinProxyServer server)
     : base(ctx, server)
 {
     if (Server.AuthenticationType != AuthenticationType.None)
     {
         authManager = new ProxyAuthManager(Server.AuthenticationType);
     }
 }
예제 #2
0
 public ProxyListener(HttpListener target, IPAddress address, int port, AuthenticationType authType)
     : base(address, port, false)
 {
     this.target = target;
     if (authType != AuthenticationType.None)
     {
         authManager = new ProxyAuthManager(authType);
     }
 }
예제 #3
0
 public ProxyListener(HttpListener target, IPortableEndPoint endpoint, AuthenticationType authType)
     : base(endpoint, ListenerFlags.Proxy)
 {
     this.target = target;
     if (authType != AuthenticationType.None)
     {
         authManager = new ProxyAuthManager(authType);
     }
 }