Ejemplo n.º 1
0
        private static void EndRequest(HttpContextBase context)//19
        {
            if (!RequestValidator.IsValid(context, LifecycleEvent.EndRequest))
            {
                return;
            }

            GlimpseTimer.Moment("End Request");

            ProcessData(context, false); //Run all plugins that DO NOT need access to Session

            var requestId = context.GetGlimpseRequestId().ToString();

            CheckForPRG(context);

            var jsonPayload = GenerateGlimpseOutput(context);

            Logger.Info("Glimpse output generated for requestId " + requestId + " (" + context.Request.Path + ")");

            MetadataStore.Persist(context.GetRequestMetadata(jsonPayload));
            Logger.Info("RequestId " + requestId + " (" + context.Request.Path + ")" + " persisted");

            Logger.Info("EndRequest handling complete for requestId " + context.GetGlimpseRequestId() + " (" + context.Request.Path + ")");
        }