Пример #1
0
 // for testing purposes
 public WebHandler(ITCP tcpHandler, IReqContext requestContext)
 {
     _tcpHandler     = tcpHandler;
     _requestContext = requestContext;
 }
Пример #2
0
 // used while normal operation
 public WebHandler(ITCP tcpHandler)
 {
     Console.WriteLine();
     _tcpHandler = tcpHandler;
     Client      = _tcpHandler.AcceptTcpClient();
 }