public static bool DeletePath(ZkClient client, string path)
 {
     try
     {
         return(client.Delete(path));
     }
     catch (ZkNoNodeException)
     {
         // this can happen during a connection loss event, return normally
         Logger.InfoFormat("{0} deleted during connection loss; This is ok. ", path);
         return(false);
     }
 }
Пример #2
0
 public static bool DeletePath(ZkClient client, string path)
 {
     try
     {
         return client.Delete(path);
     }
     catch (ZkNoNodeException)
     {
         // this can happen during a connection loss event, return normally
         Logger.InfoFormat("{0} deleted during connection loss; This is ok. ", path);
         return false;
     }
 }