public async Async.Task <RegressionReportOrReport?> GetReportOrRegression(Container container, string fileName, bool expectReports = false, params string[] args) { var filePath = String.Join("/", new[] { container.ContainerName, fileName }); if (!fileName.EndsWith(".json")) { if (expectReports) { _log.Error($"get_report invalid extension: {filePath}"); } return(null); } var blob = await _containers.GetBlob(container, fileName, StorageType.Corpus); if (blob == null) { if (expectReports) { _log.Error($"get_report invalid blob: {filePath}"); } return(null); } return(ParseReportOrRegression(blob.ToString(), filePath, expectReports)); }