Exemplo n.º 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);
        }
Exemplo n.º 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);
		}