コード例 #1
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);
     }
 }
コード例 #2
0
ファイル: ZkUtils.cs プロジェクト: ajperrins/kafka-net
 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;
     }
 }