Beispiel #1
0
 public async Task <Action1[]> CreateActionsAsync(ActionConfiguration[] actConf)
 {
     using (var proxy = new OnvifProxy(new NetworkCredential(_userName, _password), new Uri(_url)))
     {
         return(await proxy.CreateActionsAsync(actConf));
     }
 }
Beispiel #2
0
 public async Task <Action1[]> CreateActionsAsync(string camUrl, string camUserName, string camPassword, ActionConfiguration[] actConf)
 {
     using (var proxy = new OnvifProxy(new NetworkCredential(camUserName, camPassword), new Uri(camUrl)))
     {
         return(await proxy.CreateActionsAsync(actConf));
     }
 }
Beispiel #3
0
 public Action1[] CreateActions(string camUrl, string camUserName, string camPassword, ActionConfiguration[] actConf)
 {
     using (var proxy = new OnvifProxy(new NetworkCredential(camUserName, camPassword), new Uri(camUrl)))
     {
         return(proxy.CreateActionsAsync(actConf).Result);
     }
 }