/// <summary> /// Asynchronously download file with a retry /// </summary> /// <param name="fileId"></param> /// <returns></returns> public async Task <Stream> DownloadFileWithRetry(string fileId) { var r = await _policy.ExecuteAsync(async() => await _filesApi.DownloadFileAsync(fileId)); return(r); }