Пример #1
0
 /// <summary>
 /// Download a config from Zookeeper and write it to the filesystem
 /// </summary>
 /// <param name="configName">The config to download</param>
 /// <param name="dir">The path to write files under</param>
 /// <param name="token"></param>
 /// <exception cref="IOException">If an I/O error occurs or the config does not exist</exception>
 public async Task downloadConfigDir(string configName, string dir, CancellationToken token)
 {
     await zkClient.downloadFromZK(ConfigsZKnode + "/" + configName, dir, token);
 }