Esempio n. 1
0
        public static PerformanceDataProvider GetStepData(RequestNotification notification)
        {
            if (AspPerformanceData.stepData == null)
            {
                AspPerformanceData.stepData = new Dictionary <RequestNotification, PerformanceDataProvider>(13);
            }
            PerformanceDataProvider performanceDataProvider;

            if (!AspPerformanceData.stepData.TryGetValue(notification, out performanceDataProvider))
            {
                performanceDataProvider = new PerformanceDataProvider(notification.ToString());
                AspPerformanceData.stepData[notification] = performanceDataProvider;
            }
            return(performanceDataProvider);
        }
Esempio n. 2
0
 public PerformanceTimer(PerformanceDataProvider perfDataProvider)
 {
     this.perfDataProvider = perfDataProvider;
 }