예제 #1
0
        protected DataStreamingService(IGrpcWrapper <TRequestBatch, TResponse> grpcWrapper, IDelayer delayer, IConfigurationService configSvc, IAgentHealthReporter agentHealthReporter, IAgentTimerService agentTimerService)
        {
            _grpcWrapper       = grpcWrapper;
            _delayer           = delayer;
            _configSvc         = configSvc;
            _agentTimerService = agentTimerService;

            _cancellationTokenSource = new CancellationTokenSource();
            _agentHealthReporter     = agentHealthReporter;

            //This will ensure that anything that depends on the token will not run until
            //we are ready (ie. we have called Start which will generate a new token).
            _cancellationTokenSource.Cancel();
        }
 public SpanStreamingService(IGrpcWrapper <SpanBatch, RecordStatus> grpcWrapper, IDelayer delayer, IConfigurationService configSvc, IAgentHealthReporter agentHealthReporter, IAgentTimerService agentTimerService)
     : base(grpcWrapper, delayer, configSvc, agentHealthReporter, agentTimerService)
 {
 }