コード例 #1
0
 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();
 }
コード例 #2
0
 public LoggerContextContextMapper(ISegmentContextMapper segmentContextMapper)
 {
     _segmentContextMapper = segmentContextMapper;
 }