internal OwinHttpListenerContext(HttpListenerContext context, string basePath, string path, string query)
        {
            _environment = new CallEnvironment(this);

            _owinRequest  = new OwinHttpListenerRequest(context, basePath, path, query, _environment);
            _owinResponse = new OwinHttpListenerResponse(context, _environment);

            _environment.OwinVersion = Constants.OwinVersion;

            SetServerUser(context.User);
            _environment.RequestContext = context;
        }
Example #2
0
        private static void OnResponseBodyStarted(object state)
        {
            OwinHttpListenerResponse thisPtr = (OwinHttpListenerResponse)state;

            thisPtr.ResponseBodyStarted();
        }