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; }
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; }
public AlarmController(IAlarmAppService alarmAppService) { _alarmAppService = alarmAppService; }