private void downloadCompleted(DownloadEventArgs args)
 {
     lock (this.monitor)
     {
         this.CloseFile();
     }
 }
Example #2
0
 protected virtual void OnDownloadStopped(DownloadEventArgs args)
 {
     if (this.DownloadStopped != null)
     {
         this.DownloadStopped(args);
     }
 }
Example #3
0
        private void downloadCompleted(DownloadEventArgs args)
        {
            lock (this.monitor)
            {
                this.CloseDownload();
                this.state = DownloadState.Finished;
                this.stopping = true;
            }

            this.OnDownloadCompleted(new DownloadEventArgs(this));
        }
Example #4
0
        private void downloadCompleted(DownloadEventArgs args)
        {
            lock (this.monitor)
            {
                var resumingDownload = (ResumingDownload)args.Download;
                this.downloads.Remove(resumingDownload);
            }

            this.StartDownloadOfNextRange();
        }