Exemplo 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);
        }
Exemplo n.º 2
0
 public PerformanceTimer(PerformanceDataProvider perfDataProvider)
 {
     this.perfDataProvider = perfDataProvider;
 }