示例#1
0
 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);
        }
示例#3
0
 public void JobError(BITS.IBackgroundCopyJob pJob, BITS.IBackgroundCopyError pError)
 {
     Dispatcher.Invoke(() => { RefreshJobList(); });
 }
示例#4
0
 public void JobError(BITS.IBackgroundCopyJob pJob, BITS.IBackgroundCopyError pError)
 {
     pJob.Cancel();
 }