Exemple #1
0
 private void downloadCancelled(SDCancelledEventArgs args)
 {
     lock (this.monitor)
     {
         this.CloseFile();
     }
 }
 protected virtual void OnDownloadError(SDCancelledEventArgs args)
 {
     if (this.DownloadError != null)
     {
         this.DownloadError(args);
     }
 }
Exemple #3
0
        private void downloadCancelled(SDCancelledEventArgs args)
        {
            var download = args.Download;

            lock (this.monitor)
            {
                if (download == this.currentDownload)
                {
                    CountRetryAndCancelIfMaxRetriesReached();

                    if (this.currentDownload != null)
                    {
                        this.currentDownload = null;
                        StartThread(this.SleepThenBuildDownload, Thread.CurrentThread.Name + "-afterCancel");
                    }
                }
            }
        }
 private void DataError(SDCancelledEventArgs args)
 {
     OnError?.Invoke(args);
 }
 void DataCancelled(SDCancelledEventArgs args)
 {
     OnCancelled?.Invoke(args);
 }
Exemple #6
0
 private void downloadCancelled(SDCancelledEventArgs args)
 {
     this.StartDownloadOfNextRange();
 }