Exemple #1
0
        public async Task <BizResult <bool> > DeleteRecursiveZNode(string path)
        {
            if (await _zookeeperClient.ExistsAsync(path))
            {
                await _zookeeperClient.DeleteRecursiveAsync(path);

                return(new BizResult <bool>(true));
            }
            else
            {
                return(new BizResult <bool>(false, -1, "删除的节点不存在!"));
            }
        }