コード例 #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;
 }