Exemple #1
0
        public Server(int port, IHttpHandlingContext handlersContext)
        {
            this.port     = port;
            this.listener = new TcpListener(IPAddress.Parse(LocalhostIpAddress), port);

            this.handlersContext = handlersContext;
        }
        public ConnectionHandler(Socket client, IHttpHandlingContext handlersContext)
        {
            CoreValidator.ThrowIfNull(client, nameof(client));
            CoreValidator.ThrowIfNull(handlersContext, nameof(handlersContext));

            this.client          = client;
            this.handlersContext = handlersContext;
        }
Exemple #3
0
 public ConnectionHandler(Socket client, IHttpHandlingContext handlersContext)
 {
     this.client          = client;
     this.handlersContext = handlersContext;
 }