public ConnectionHandler(Socket client, IHttpHandlerContext handler)
        {
            CoreValidator.ThrowIfNull(client, nameof(client));
            CoreValidator.ThrowIfNull(handler, nameof(handler));

            this.client  = client;
            this.handler = handler;
        }
Exemplo n.º 2
0
 public ConnectionHandler(Socket client, IHttpHandlerContext handlerContext)
 {
     this.client         = client;
     this.handlerContext = handlerContext;
 }
 public Server(int port, IHttpHandlerContext handler)
 {
     this.port     = port;
     this.listener = new TcpListener(IPAddress.Parse(LocalHostIpAddress), port);
     this.handler  = handler;
 }