// for testing purposes public WebHandler(ITCP tcpHandler, IReqContext requestContext) { _tcpHandler = tcpHandler; _requestContext = requestContext; }
// used while normal operation public WebHandler(ITCP tcpHandler) { Console.WriteLine(); _tcpHandler = tcpHandler; Client = _tcpHandler.AcceptTcpClient(); }