Ejemplo n.º 1
0
 private static Archive FetchArchive(Tag tag)
 {
     var archiveParams = ArchiveParams(tag);
     Task<Archive> getArchive = _client.QueryAsync<Archive>(archiveParams);
     ConsoleHelper.WriteUntilComplete(getArchive, string.Format("Downloading version {0}", tag.name));
     return getArchive.Result;
 }
Ejemplo n.º 2
0
 private static Dictionary<string, string> ArchiveParams(Tag tag)
 {
     var archiveParams = new Dictionary<string, string>()
         {
             {"owner", "OSTUSA"},
             {"repo", "ndriven"},
             {"format", "zipball"},
             {"ref", tag.name}
         };
     return archiveParams;
 }