public async Task <Dictionary <string, string> > GetEntireDatabaseCsvFile(string databaseShortCode, DownloadType downloadType) { var parameters = new Dictionary <string, string> { { "download_type", downloadType.UrlValue } }; var pathReplacements = new List <string>() { databaseShortCode }; var returnValue = new Dictionary <string, string>(); await using (var zippedReturnStream = await _requestRouter.MakeRequestStream( Endpoints.Database.CsvFile, parameters, pathReplacements)) { using var archive = new ZipArchive(zippedReturnStream); foreach (var entry in archive.Entries) { using var reader = new StreamReader(entry.Open()); returnValue.Add(entry.Name, reader.ReadToEnd()); } } return(returnValue); }