Exemplo n.º 1
0
 /// <summary>
 /// 可以供继承类的重写。
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnUploadCompleted(UploadCompletedEventArgs e)
 {
     if (this.UploadCompleted != null)
     {
         this.UploadCompleted(this, e);
     }
 }
 /// <summary>
 /// 可以供继承类的重写。
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnUploadCompleted(UploadCompletedEventArgs e)
 {
     if (!e.HasSuccessfulUploaded)
     {
         this.SaveUpload(e.UploadTime, e.UploadedData, e.UploadedResult);
     }
     this.UploadCompleted?.Invoke(this, e);
 }