public InsiderReportWriter(IInsider insider) { _insider = insider ?? throw new ArgumentNullException(nameof(insider)); _chainEqualityComparer = new ChainEqualityComparer(); _metricsBag = new ConcurrentBag <ISectionMetrics>(); }
public static IProfilerConfiguration UseInsiderReportWriter(this IProfilerConfiguration settings, IInsider insider) { settings.CreateReportWriter = () => new InsiderReportWriter(insider); return(settings); }