Ejemplo n.º 1
0
        internal OwinCallContext(
            OwinAppContext appContext,
            RequestContext requestContext,
            string requestPathBase,
            string requestPath,
            AsyncCallback cb,
            object extraData)
        {
            _appContext = appContext;
            _requestContext = requestContext;
            _requestPathBase = requestPathBase;
            _requestPath = requestPath;

            AsyncResult = new CallContextAsyncResult(this, cb, extraData);

            _httpContext = _requestContext.HttpContext;
            _httpRequest = _httpContext.Request;
            _httpResponse = _httpContext.Response;

            _disconnectWatcher = new DisconnectWatcher(_httpResponse);
        }
Ejemplo n.º 2
0
        internal OwinCallContext(
            OwinAppContext appContext,
            RequestContext requestContext,
            string requestPathBase,
            string requestPath,
            AsyncCallback cb,
            object extraData)
        {
            _appContext      = appContext;
            _requestContext  = requestContext;
            _requestPathBase = requestPathBase;
            _requestPath     = requestPath;

            AsyncResult = new CallContextAsyncResult(this, cb, extraData);

            _httpContext  = _requestContext.HttpContext;
            _httpRequest  = _httpContext.Request;
            _httpResponse = _httpContext.Response;

            _disconnectWatcher = new DisconnectWatcher(_httpResponse);
        }