Ejemplo n.º 1
0
 public async Task <SupportedActions> GetSupportedActionsAsync()
 {
     using (var proxy = new OnvifProxy(new NetworkCredential(_userName, _password), new Uri(_url)))
     {
         return(await proxy.GetSupportedActionsAsync());
     }
 }
Ejemplo n.º 2
0
 public SupportedActions GetSupportedActions(string camUserName, string camPassword, string cameraUri)
 {
     using (var proxy = new OnvifProxy(new NetworkCredential(camUserName, camPassword), new Uri(cameraUri)))
     {
         var actions = proxy.GetSupportedActionsAsync().Result;
         return(actions);
     }
 }