public OwinCommunicationContext(IOwinContext nativeContext, ILogger logger)
 {
     PipelineData   = new PipelineData(nativeContext.Environment);
     _nativeContext = nativeContext;
     Request        = new OwinRequest(nativeContext.Request);
     Response       = new OwinResponse(nativeContext);
     ServerErrors   = new ServerErrorList {
         Log = logger
     };
     _appBaseRelative = nativeContext.Request.PathBase;
 }
        public OwinCommunicationContext(IOwinContext nativeContext, ILogger logger)
        {
            PipelineData = new PipelineData();

            foreach (var kv in nativeContext.Environment)
            {
                PipelineData.Add(kv.Key, kv.Value);
            }

            _nativeContext = nativeContext;
            Request        = new OwinRequest(nativeContext.Request);
            Response       = new OwinResponse(nativeContext);
            ServerErrors   = new ServerErrorList {
                Log = logger
            };
            _appBaseRelative = nativeContext.Request.PathBase;
        }