public ThresholdTraceListener(ILoggerFactory loggerFactory, ThresholdOptions options) { var thresholdOptions1 = options; var logger = loggerFactory.CreateLogger <RequestTracer>(); _timer = new Timer(GenerateAndLogReport, logger, thresholdOptions1.EmitInterval, thresholdOptions1.EmitInterval); ThresholdServiceQueue.SetSampleSize((int)thresholdOptions1.SampleSize);//change to uint _serviceThresholds = options.GetServiceThresholds(); Start(); }
public ThresholdTraceListener(ThresholdOptions options) { _serviceThresholds = options.GetServiceThresholds(); Start(); }