コード例 #1
0
 public AlarmInfoJob(IDeviceDataDao deviceDataDao, IAlarmInfoDao alarmInfoDao, IThresholdDao thresholdDao, ILogger <AlarmInfoJob> logger)
 {
     this._deviceDataDao = deviceDataDao;
     this._alarmInfoDao  = alarmInfoDao;
     this._thresholdDao  = thresholdDao;
     this._logger        = logger;
 }
コード例 #2
0
        public DeviceDataDao(IThresholdDao thresholdDao, IFieldDao fieldDao, ICityDao cityDao)
        {
            var client   = new MongoClient(Constant.getMongoDBConnectionString());
            var database = client.GetDatabase("iotmanager");

            _deviceData        = database.GetCollection <DeviceDataModel>("monitordata");
            _alarmInfo         = database.GetCollection <AlarmInfoModel>("alarminfo");
            this._thresholdDao = thresholdDao;
            this._fieldDao     = fieldDao;
            this._cityDao      = cityDao;
        }
コード例 #3
0
 public AlarmInfoJob(IDeviceDataDao deviceDataDao,
                     IAlarmInfoDao alarmInfoDao,
                     IThresholdDao thresholdDao,
                     ISeverityDao severityDao,
                     IDeviceDao deviceDao,
                     IDeviceBus deviceBus,
                     IStateTypeDao stateTypeDao,
                     IFieldBus fieldBus,
                     IFieldDao fieldDao,
                     ILogger <AlarmInfoJob> logger)
 {
     this._deviceDataDao = deviceDataDao;
     this._alarmInfoDao  = alarmInfoDao;
     this._thresholdDao  = thresholdDao;
     this._severityDao   = severityDao;
     this._deviceDao     = deviceDao;
     this._deviceBus     = deviceBus;
     this._stateTypeDao  = stateTypeDao;
     this._fieldBus      = fieldBus;
     this._fieldDao      = fieldDao;
     this._logger        = logger;
 }
コード例 #4
0
 /*
  * 构造函数
  * 需要注入DeviceDataDao, AlarmInfoDao, DeviceDao, WorkshopDao, StateTypeDao
  */
 public DeviceDataBus(IDeviceDataDao deviceDataDao,
                      IAlarmInfoDao alarmInfoDao,
                      ILogger <DeviceDataBus> logger,
                      IDeviceDao deviceDao,
                      IDeviceBus deviceBus,
                      IWorkshopDao workshopDao,
                      IStateTypeDao stateTypeDao,
                      IDeviceDailyOnlineTimeDao deviceDailyOnlineTimeDao,
                      IThresholdDao thresholdDao,
                      IFieldDao fieldDao
                      )
 {
     this._deviceDataDao            = deviceDataDao;
     this._alarmInfoDao             = alarmInfoDao;
     this._logger                   = logger;
     this._deviceDao                = deviceDao;
     this._deviceBus                = deviceBus;
     this._workshopDao              = workshopDao;
     this._stateTypeDao             = stateTypeDao;
     this._deviceDailyOnlineTimeDao = deviceDailyOnlineTimeDao;
     this._thresholdDao             = thresholdDao;
     this._fieldDao                 = fieldDao;
 }
コード例 #5
0
 public ThresholdBus(IThresholdDao thresholdDao, ILogger <ThresholdBus> logger)
 {
     this._thresholdDao = thresholdDao;
     this._logger       = logger;
 }
コード例 #6
0
 public ThresholdBus(IThresholdDao thresholdDao, ILogger <ThresholdBus> logger, IDeviceDao deviceDao)
 {
     this._thresholdDao = thresholdDao;
     this._logger       = logger;
     this._deviceDao    = deviceDao;
 }