BiliRanking.Core.Download.HttpDownloadClient.OnDownloadCompleted C# (CSharp) Method

OnDownloadCompleted() protected method

The method will be called by the OnStatusChanged method.
protected OnDownloadCompleted ( DownloadCompletedEventArgs e ) : void
e DownloadCompletedEventArgs
return void
        protected virtual void OnDownloadCompleted(DownloadCompletedEventArgs e)
        {
            if (e.Error != null && this.status != DownloadStatus.Canceled)
            {
                this.Status = DownloadStatus.Completed;
            }

            if (DownloadCompleted != null)
            {
                DownloadCompleted(this, e);
            }
        }