Exemplo n.º 1
0
        public Worker(
            IKafkaConsumer <string, Provider> ukrlpConsumer,
            IFeProviderManager providerManager,
            IOptions <DataServicesPlatformConfiguration> options,
            IMapper mapper,
            ILogger <Worker> logger)
        {
            _ukrlpConsumer   = ukrlpConsumer;
            _providerManager = providerManager;
            _mapper          = mapper;
            _configuration   = options.Value;
            _logger          = logger;

            _ukrlpConsumer.SetMessageHandler(ProcessMessageFromTopic);
        }
        public Worker(
            IKafkaConsumer <string, Sld.Learner> sldConsumer,
            ILearnerManager learnerManager,
            ILearningDeliveryManager learningDeliveryManager,
            IOptions <DataServicesPlatformConfiguration> options,
            IMapper mapper,
            ILogger <Worker> logger)
        {
            _sldConsumer             = sldConsumer;
            _learnerManager          = learnerManager;
            _learningDeliveryManager = learningDeliveryManager;
            _mapper        = mapper;
            _configuration = options.Value;
            _logger        = logger;

            _sldConsumer.SetMessageHandler(ProcessMessageFromTopic);
        }