示例#1
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;
 }