示例#1
0
        public DVRInfoController(ICameraAppService cameraAppService, IDVRAppService dVRAppService, IConfiguration configuration)
        {
            _cameraAppService = cameraAppService;
            _dVRAppService    = dVRAppService;
            _configuration    = configuration;

            if (_httpClient == null)
            {
                _httpClient = new HttpClient();
            }
        }
示例#2
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;
 }
示例#3
0
 public DVRController(IDVRAppService dVRAppService)
 {
     _dVRAppService = dVRAppService;
 }
 public ExcelInDBController(ICameraAppService cameraAppService, IDVRAppService dVRAppService)
 {
     _cameraAppService = cameraAppService;
     _dVRAppService    = dVRAppService;
 }