BoC.Profiling.Profiler.ProfilingContext.ProfilingContext C# (CSharp) Method

ProfilingContext() public method

Initializes a new instance of the ProfilingContext class.
public ProfilingContext ( string key, IPerformanceProfiler performanceProfilers ) : System
key string The key.
performanceProfilers IPerformanceProfiler The performance profilers.
return System
            public ProfilingContext(string key, IPerformanceProfiler[] performanceProfilers)
            {
                _key = key;
                _performanceProfilers = performanceProfilers;
                if (_performanceProfilers == null || _performanceProfilers.Length == 0)
                    return;
                foreach (var profiler in _performanceProfilers)
                {
                    profiler.BeginSession(key);
                }
            }
Profiler.ProfilingContext