コード例 #1
0
        public HttpConnectionContext(ServerContext server, HttpListenerContext httpContext, DateTime acceptedAt,
                                     Action onComplete)
        {
            _timer = Stopwatch.StartNew();

            _server      = server;
            _httpContext = httpContext;
            _acceptedAt  = acceptedAt;
            _onComplete  = onComplete;

            _request  = new HttpRequestContext(httpContext.Request);
            _response = new HttpResponseContext(httpContext.Response);
        }
コード例 #2
0
        public HttpConnectionContext(ServerContext server, HttpListenerContext httpContext, DateTime acceptedAt,
            Action onComplete)
        {
            _timer = Stopwatch.StartNew();

            _server = server;
            _httpContext = httpContext;
            _acceptedAt = acceptedAt;
            _onComplete = onComplete;

            _request = new HttpRequestContext(httpContext.Request);
            _response = new HttpResponseContext(httpContext.Response);
        }