Esempio n. 1
0
        internal RequestInfo(FosRequest req)
        {
            if (req == null)
            {
                throw new ArgumentNullException("req");
            }

            var ctx = req.OwinContext;

            // If the request was closed too quickly, we may not have received all parameters. Always check
            if (ctx.HttpMethodDefined)
            {
                HttpMethod = ctx.HttpMethod;
            }
            if (ctx.RelativePathDefined)
            {
                RelativePath = ctx.RelativePath;
            }

            QueryString = ctx.QueryString;

            if (ctx.SomeResponseExists)
            {
                ResponseStatusCode = ctx.ResponseStatusCode;
            }
        }
 internal override void OnRecordBuilt(FosRequest req, RecordBase rec)
 {
     req.ApplicationPipelineEntry = OwinPipelineEntry;
     req.FlushPeriodically        = FlushPeriodically;
 }