public async Task <IList <IClientSpan> > Read(LoadArgs args) { var archives = GetArchives(args); var results = new List <IClientSpan>(); foreach (var archive in archives) { var filePath = CreateFilePath(archive.ArchiveId); var jsonLines = await _asyncFile.ReadAllLines(filePath).ConfigureAwait(false); if (jsonLines != null) { foreach (var jsonLine in jsonLines) { var result = jsonLine.FromJson <IList <ClientSpanEntity> >(null); if (result != null) { results.AddRange(result); } } } } return(results); }