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