Ejemplo n.º 1
0
 static ManageDataProcessor()
 {
     _facilityCameraService     = AhnqIotContainer.Container.Resolve <IFacilityCameraService>();
     _deviceService             = AhnqIotContainer.Container.Resolve <IDeviceService>();
     _deviceExceptionSetService = AhnqIotContainer.Container.Resolve <IDeviceExceptionSetService>();
     _facilityService           = AhnqIotContainer.Container.Resolve <IFacilityService>();
     _redis = new RedisClient();
 }
Ejemplo n.º 2
0
        /// <summary>
        ///     实例化一个redis客户端
        /// </summary>
        //private RedisClient RedisClient;
        /// <summary>
        ///     分析图片定时器
        /// </summary>
        //private TimerX _processPicsTimerX;

        public CompanyCameraDeviceJob()
        {
            // LoadLib();
            DisplayName                            = "企业定时拍照工作组件";
            JobInterval                            = _period * 60;
            _farmService                           = AhnqIotContainer.Container.Resolve <IFarmService>();
            _companyService                        = AhnqIotContainer.Container.Resolve <ICompanyService>();
            _sysDepartmentService                  = AhnqIotContainer.Container.Resolve <ISysDepartmentService>();
            _facilityService                       = AhnqIotContainer.Container.Resolve <IFacilityService>();
            _facilityCameraService                 = AhnqIotContainer.Container.Resolve <IFacilityCameraService>();
            _facilityCameraPresetPoinService       = AhnqIotContainer.Container.Resolve <IFacilityCameraPresetPointService>();
            _pictureRepService                     = AhnqIotContainer.Container.Resolve <IPictureRepService>();
            _facilityPicsRepService                = AhnqIotContainer.Container.Resolve <IFacilityPicsService>();
            _facilityCameraRunLogRepService        = AhnqIotContainer.Container.Resolve <IFacilityCameraRunLogService>();
            _facilityCameraRunStatisticsRepService = AhnqIotContainer.Container.Resolve <IFacilityCameraRunStatisticsService>();
            //初始化RedisClient
            //RedisClient = RedisClient.DefaultDB;
            _deviceService = AhnqIotContainer.Container.Resolve <IDeviceService>();
        }
Ejemplo n.º 3
0
 public MediaUpdateProcess()
 {
     _redisClient           = RedisClient.DefaultDB;
     _facilityCameraService = AhnqIotContainer.Container.Resolve <IFacilityCameraService>();
     _facilityService       = AhnqIotContainer.Container.Resolve <IFacilityService>();
 }
Ejemplo n.º 4
0
 public QueryMediaProcess()
 {
     _facilityCameraService = AhnqIotContainer.Container.Resolve <IFacilityCameraService>();
 }