public InsiderReportWriter(IInsider insider)
        {
            _insider = insider ?? throw new ArgumentNullException(nameof(insider));

            _chainEqualityComparer = new ChainEqualityComparer();
            _metricsBag            = new ConcurrentBag <ISectionMetrics>();
        }
Пример #2
0
 public static IProfilerConfiguration UseInsiderReportWriter(this IProfilerConfiguration settings, IInsider insider)
 {
     settings.CreateReportWriter = () => new InsiderReportWriter(insider);
     return(settings);
 }