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

            this.handlersContext = handlersContext;
        }
コード例 #2
0
        public ConnectionHandler(Socket client, IHttpHandlingContext handlersContext)
        {
            CoreValidator.ThrowIfNull(client, nameof(client));
            CoreValidator.ThrowIfNull(handlersContext, nameof(handlersContext));

            this.client          = client;
            this.handlersContext = handlersContext;
        }
コード例 #3
0
 public ConnectionHandler(Socket client, IHttpHandlingContext handlersContext)
 {
     this.client          = client;
     this.handlersContext = handlersContext;
 }