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; }
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; }