Exemplo n.º 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);
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public void JobError(BITS.IBackgroundCopyJob pJob, BITS.IBackgroundCopyError pError)
 {
     Dispatcher.Invoke(() => { RefreshJobList(); });
 }
Exemplo n.º 4
0
 public void JobError(BITS.IBackgroundCopyJob pJob, BITS.IBackgroundCopyError pError)
 {
     pJob.Cancel();
 }