예제 #1
0
 public AlarmStatusService(
     IMqttClient mqttClient,
     IOptions <AlertsOptions> options,
     AlertStatusProvider alertStatusProvider,
     ILogger <AlarmStatusService> logger)
 {
     _mqttClient          = mqttClient;
     _alertStatusProvider = alertStatusProvider;
     _logger  = logger;
     _options = options.Value;
 }
예제 #2
0
 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;
 }
예제 #3
0
 public AlertStatusProvider(IOptions <AlertsOptions> options)
 {
     _options = options.Value;
 }