public ProxyListener(TestContext ctx, BuiltinProxyServer server) : base(ctx, server) { if (Server.AuthenticationType != AuthenticationType.None) { authManager = new ProxyAuthManager(Server.AuthenticationType); } }
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); } }
public ProxyListener(HttpListener target, IPortableEndPoint endpoint, AuthenticationType authType) : base(endpoint, ListenerFlags.Proxy) { this.target = target; if (authType != AuthenticationType.None) { authManager = new ProxyAuthManager(authType); } }