forked from fajiao/OnvifServer-CSharp
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.
27 lines
538 B
27 lines
538 B
3 years ago
|
using EC.App.Entity.Onvif;
|
||
|
using EC.App.ThatBLL.Onvif.Impl;
|
||
|
using EC.Onvif;
|
||
|
|
||
|
namespace EC.App.ThatBLL.Onvif
|
||
|
{
|
||
|
public class ImagingBLL : IImagingBLL
|
||
|
{
|
||
|
private readonly OnvifClientService _ocService;
|
||
|
|
||
|
public ImagingBLL(OnvifClientService onvifClientService)
|
||
|
{
|
||
|
_ocService = onvifClientService;
|
||
|
}
|
||
|
|
||
|
#region Operate
|
||
|
|
||
|
public bool IsConnected(string ip)
|
||
|
{
|
||
|
bool flag = _ocService.TryGet(ip, out OnvifClient onvifClient);
|
||
|
bool ret = flag && onvifClient.IsImagingContected();
|
||
|
return ret;
|
||
|
}
|
||
|
|
||
|
#endregion Operate
|
||
|
}
|
||
|
}
|