private async Task FinishUploadSessionAsync(UploadSession session, List <BlockInfo> uploadedBlockList,
                                             CancellationToken cancellationToken)
 {
     await Task.WhenAll(
         _blobStorage.CommitBlockListAsync(session.Id, uploadedBlockList.Select(x => x.Id), cancellationToken),
         _sessions.CompleteSessionAsync(session.Id, cancellationToken));
 }