public async Task DownLoadDlBook(DlBook serverDlBook, CancellationToken cancelToken, DownloadProgressEventHandler downloadHandler) { var downLoadSuccess = await deliveryService.DlFileDownload(serverDlBook, cancelToken, downloadHandler); if (!downLoadSuccess) { throw new Exception("DlFileDownload failure"); } DlFileStatusUpdate dlFileStatusUpdate = new DlFileStatusUpdate { DeviceId = GlobalAccess.DeviceId, Email = GlobalAccess.Instance.CurrentUserInfo.Email, //DLId = serverDlBook.BookId, Ver = serverDlBook.CurrentVersion.ToString(), StatusCode = ((int)DlStatusEnum.Downloaded).ToString() }; var updateSuccess = await deliveryService.DlFileStatusUpdate(dlFileStatusUpdate, cancelToken); if (!updateSuccess) { throw new Exception("DlFileStatusUpdate failure"); } }