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; }
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; }