public void Start(ILoginValidator aLoginValidator) { iLoginValidator = aLoginValidator; iHttpServer = new HttpServer(kNumServerThreads); iHttpServer.Start(kRemoteAccessPort, ProcessRequest); Logger.InfoFormat("Started proxy server on port {0}", kRemoteAccessPort); }
public void Stop() { if (iHttpServer != null) { iHttpServer.Dispose(); iHttpServer = null; } }