RedisRepository.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using Abp.Dependency;
  2. using YunDa.ISAS.DataTransferObject.EquipmentLiveData;
  3. using YunDa.ISAS.Redis.Entities.AlarmCategory;
  4. using YunDa.ISAS.Redis.Entities.CameraAuthCategory;
  5. using YunDa.ISAS.Redis.Entities.DataMonitorCategory;
  6. using YunDa.ISAS.Redis.Entities.LinkageCategory;
  7. using YunDa.ISAS.Redis.Repositories;
  8. namespace Yunda.ISAS.DataMonitoringServer.DataCenter
  9. {
  10. public class RedisDataRepository : ISingletonDependency
  11. {
  12. public IRedisRepository<CameraAuthTimeRedis, string> CameraAuthTimeRepository { get; }
  13. public IRedisRepository<LinkageResultInfoRedis, string> LinkageResultInfoRedis { get; }
  14. public IRedisRepository<AlarmListRedis, string> AlarmListRedis { get; }
  15. public IRedisRepository<EnvironmentTempValue, string> EnvironmentTempValueRedis { get; }
  16. public IRedisRepository<EquipmentDataModel, string> EquipmentDataModelDicRedis { get; }
  17. //public IRedisRepository<object, string> EquipmentDataDicRedis { get; }
  18. public IRedisRepository<DateTime, string> LastTrueResultTimeList { get; set; }
  19. public RedisDataRepository(IRedisRepository<CameraAuthTimeRedis, string> cameraAuthTimeRepository,
  20. IRedisRepository<LinkageResultInfoRedis, string> linkageResultInfoRedis,
  21. IRedisRepository<AlarmListRedis, string> alarmListRedis,
  22. IRedisRepository<EnvironmentTempValue, string> environmentTempValueRedis,
  23. //IRedisRepository<object, string> equipmentDataDicRedis,
  24. IRedisRepository<DateTime, string> lastTrueResultTimeList,
  25. IRedisRepository<EquipmentDataModel,string> equipmentDataModelDicRedis
  26. )
  27. {
  28. CameraAuthTimeRepository = cameraAuthTimeRepository;
  29. LinkageResultInfoRedis = linkageResultInfoRedis;
  30. AlarmListRedis = alarmListRedis;
  31. EnvironmentTempValueRedis = environmentTempValueRedis;
  32. //EquipmentDataDicRedis = equipmentDataDicRedis;
  33. LastTrueResultTimeList = lastTrueResultTimeList;
  34. EquipmentDataModelDicRedis = equipmentDataModelDicRedis;
  35. }
  36. }
  37. }