Example #1
0
 public static System.Diagnostics.Stopwatch Stop(String stopwatchName)
 {
     System.Diagnostics.Stopwatch stopwatch = CurrentRequest.getItem(stopwatchName) as System.Diagnostics.Stopwatch;
     if (stopwatch == null)
     {
         Start();
     }
     stopwatch.Stop();
     return(stopwatch);
 }
Example #2
0
        private void logTemplate(string templatePath)
        {
            //logger.Info( "load template=>" + templatePath );
            List <String> tplList = CurrentRequest.getItem(loadedTemplates) as List <String>;

            if (tplList == null)
            {
                tplList = new List <string>();
            }
            tplList.Add(templatePath);
            CurrentRequest.setItem(loadedTemplates, tplList);
        }