示例#1
0
 public DVRInfoController(ICameraAppService cameraAppService, IDVRAppService dVRAppService, IConfiguration configuration, IAlarmAppService alarmAppService)
 {
     _cameraAppService = cameraAppService;
     _dVRAppService    = dVRAppService;
     _configuration    = configuration;
     _alarmAppService  = alarmAppService;
     if (_httpClient == null)
     {
         _httpClient = new HttpClient();
     }
     dvrurl = _configuration.GetSection("DVRInfourl:url").Value;
 }
示例#2
0
        public AlarmInfoController(IAlarmHostAppService alarmHostAppService, IAlarmAppService alarmAppService, IAlarmManageStateAppService alarmManageStateAppService, IAlarmStatusAppService alarmStatusAppService, IConfiguration configuration)
        {
            _alarmHostAppService        = alarmHostAppService;
            _alarmAppService            = alarmAppService;
            _alarmManageStateAppService = alarmManageStateAppService;
            _alarmStatusAppService      = alarmStatusAppService;
            _configuration = configuration;

            if (_httpClient == null)
            {
                _httpClient = new HttpClient();
            }
            dvrurl = _configuration.GetSection("DVRInfourl:url").Value;
        }
示例#3
0
 public AlarmController(IAlarmAppService alarmAppService)
 {
     _alarmAppService = alarmAppService;
 }