You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
498 B
23 lines
498 B
3 years ago
|
using EC.App.ThatBLL.Onvif.Intf;
|
||
|
using EC.App.ThatService.Onvif;
|
||
3 years ago
|
using EC.Onvif;
|
||
|
|
||
3 years ago
|
namespace EC.App.ThatBLL.Onvif
|
||
3 years ago
|
{
|
||
|
public class DeviceBLL : IDeviceBLL
|
||
|
{
|
||
|
private readonly OnvifClientService _ocService;
|
||
|
|
||
|
public DeviceBLL(OnvifClientService onvifClientService)
|
||
|
{
|
||
|
_ocService = onvifClientService;
|
||
|
}
|
||
|
|
||
|
public bool IsConnected(string ip)
|
||
|
{
|
||
|
bool flag = _ocService.TryGet(ip, out OnvifClient onvifClient);
|
||
|
bool ret = flag && onvifClient.IsDeviceContected();
|
||
|
return ret;
|
||
|
}
|
||
|
}
|
||
|
}
|