Example #1
0
 public async Task <SupportedActions> GetSupportedActionsAsync()
 {
     using (var proxy = new OnvifProxy(new NetworkCredential(_userName, _password), new Uri(_url)))
     {
         return(await proxy.GetSupportedActionsAsync());
     }
 }
Example #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);
     }
 }