public AsyncQueueSegmentDispatcher(IConfigAccessor configAccessor, ISegmentReporter segmentReporter, IRuntimeEnvironment runtimeEnvironment, ISegmentContextMapper segmentContextMapper, ILoggerFactory loggerFactory) { _segmentReporter = segmentReporter; _segmentContextMapper = segmentContextMapper; _runtimeEnvironment = runtimeEnvironment; _logger = loggerFactory.CreateLogger(typeof(AsyncQueueSegmentDispatcher)); _config = configAccessor.Get <TransportConfig>(); _segmentQueue = new ConcurrentQueue <SegmentRequest>(); _cancellation = new CancellationTokenSource(); }
public LoggerContextContextMapper(ISegmentContextMapper segmentContextMapper) { _segmentContextMapper = segmentContextMapper; }