public void JobError(BITS.IBackgroundCopyJob pJob, BITS.IBackgroundCopyError pError) { pJob.Cancel(); aTimer.Stop(); pError.GetErrorDescription((uint)CultureInfo.GetCultureInfo("en-US").LCID, out string errdesc); if (errdesc != null) { installationPackage.HandleDownloadError(errdesc); } installationPackage.HandleProgress(installationPackage); }
public void JobError(BITS.IBackgroundCopyJob pJob, BITS.IBackgroundCopyError pError) { #if DEBUG Logger.GetLogger().Info($"JobError event on download file: {_downloadFileName}"); #endif pJob.Cancel(); _aTimer.Stop(); pError.GetErrorDescription((uint)CultureInfo.GetCultureInfo("en-US").LCID, out string errdesc); if (!string.IsNullOrWhiteSpace(errdesc)) { installationPackage.HandleDownloadError(errdesc); } installationPackage.HandleProgress(installationPackage); }
public void JobError(BITS.IBackgroundCopyJob pJob, BITS.IBackgroundCopyError pError) { Dispatcher.Invoke(() => { RefreshJobList(); }); }
public void JobError(BITS.IBackgroundCopyJob pJob, BITS.IBackgroundCopyError pError) { pJob.Cancel(); }