The time need to render a time
示例#1
0
        void globalAsax_BeginRequest(object sender, EventArgs e)
        {
            if (_appData[_AppDataKey] == null)
                _appData[_AppDataKey] = new RenderDurationFiFo(_renderListSize);

            var entries = (RenderDurationFiFo)_appData[_AppDataKey];
             _renderDuration = RenderDurationBuilder.GetNewEntry();
             entries.Add(_renderDuration);
        }
        public static RenderDuration GetNewEntry()
        {
            var result = new RenderDuration();

            result.StartsNow();

            if(ContextUtil.IsWebContext){
                result.RequestedPage = HttpContext.Current.Request.Path;
            }else{
                result.RequestedPage = "NonWebApplication_" + Guid.NewGuid();
            }

            return result;
        }