示例#1
0
        protected static PerformanceCounterInterceptorInserter GetPerformanceCounterInterceptorInserter(string[] operations)
        {
            if (performanceCounterInterceptorInserter == null)
            {
                lock (typeof(PerformanceCounterInterceptorInserter))
                {
                    if (performanceCounterInterceptorInserter == null)
                    {
                        performanceCounterInterceptorInserter = new PerformanceCounterInterceptorInserter(operations);
                    }
                }
            }

            return(performanceCounterInterceptorInserter);
        }
示例#2
0
        protected static PerformanceCounterInterceptorInserter GetPerformanceCounterInterceptorInserter(string[] operations)
        {
            if (performanceCounterInterceptorInserter == null)
            {
                lock (typeof(PerformanceCounterInterceptorInserter))
                {
                    if (performanceCounterInterceptorInserter == null)
                        performanceCounterInterceptorInserter = new PerformanceCounterInterceptorInserter(operations);
                }
            }

            return performanceCounterInterceptorInserter;
        }