示例#1
0
 public ActionTrigger[] GetActionTriggers(string camUrl, string camUserName, string camPassword)
 {
     using (var proxy = new OnvifProxy(new NetworkCredential(camUserName, camPassword), new Uri(camUrl)))
     {
         return(proxy.GetActionTriggersAsync().Result);
     }
 }
示例#2
0
 public async Task <ActionTrigger[]> GetActionTriggersAsync()
 {
     using (var proxy = new OnvifProxy(new NetworkCredential(_userName, _password), new Uri(_url)))
     {
         return(await proxy.GetActionTriggersAsync());
     }
 }