コード例 #1
0
 public BackgroundRestWorkerService(ILogger <BackgroundRestWorkerService> logger, IThermoDataLogic logic, IConfiguration configuration, ICheckPointLogger checkPointLogger)
 {
     _logger        = logger;
     _configuration = configuration;
     _serviceWorkerConfiguration = configuration.GetSection(ServiceWorkerConfiguration).Get <ServiceWorkerConfiguration>();
     _checkPointLogger           = checkPointLogger;
     thermoLogic = logic;
 }
コード例 #2
0
        public ThermoDataLogic(ILogger <ThermoDataLogic> logger, IConfiguration configuration, ICheckPointLogger checkPointLogger, IChannelMessageSender channelMessageSender)
        {
            _logger        = logger;
            _configuration = configuration;

            _restConfiguration          = configuration.GetSection(ThermoRestApiConfigurationKey).Get <ThermoRestConfiguration>();
            _checkPointLogger           = checkPointLogger;
            _serviceWorkerConfiguration = configuration.GetSection(ServiceWorkerConfigirationKey).Get <ServiceWorkerConfiguration>();
            _channelMessageSender       = channelMessageSender;
        }