private void downloadCancelled(SDCancelledEventArgs args) { lock (this.monitor) { this.CloseFile(); } }
protected virtual void OnDownloadError(SDCancelledEventArgs args) { if (this.DownloadError != null) { this.DownloadError(args); } }
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); }
private void downloadCancelled(SDCancelledEventArgs args) { this.StartDownloadOfNextRange(); }