using EC.App.ThatService.Onvif.Impl; using EC.Onvif; namespace EC.App.Entity.Onvif { public class OnvifClientService : IOnvifClientService { private readonly OnvifClientDict _dict = new OnvifClientDict(); public OnvifClientService() { } public bool TryAdd(string key, OnvifClient value) { bool ret = _dict.TryAdd(key, value); return ret; } public bool Remove(string key) { bool ret = _dict.Remove(key); return ret; } public bool TryUpdate(string key, OnvifClient value) { bool ret = _dict.TryUpdate(key, value); return ret; } public bool TryGet(string key, out OnvifClient value) { bool ret = _dict.TryGet(key, out value); return ret; } public bool IsExist(string key) { bool ret = _dict.IsExist(key); return ret; } } }