public AlarmStatusService( IMqttClient mqttClient, IOptions <AlertsOptions> options, AlertStatusProvider alertStatusProvider, ILogger <AlarmStatusService> logger) { _mqttClient = mqttClient; _alertStatusProvider = alertStatusProvider; _logger = logger; _options = options.Value; }
public OccupancyAlertService( IMqttClient mqttClient, IOptions <AlertsOptions> options, IAlertsStore alertsStore, ILastFiredAlertQuery lastFiredAlertQuery, IAlertNotifier alertNotifier, AlertStatusProvider alertStatusProvider, ILogger <OccupancyAlertService> logger) { _mqttClient = mqttClient; _alertsStore = alertsStore; _lastFiredAlertQuery = lastFiredAlertQuery; _alertNotifier = alertNotifier; _alertStatusProvider = alertStatusProvider; _logger = logger; _options = options.Value; }