public void ReportUploadProgress(string statusDescription, UploadInfo uploadInfo, double byteRate) { _jobInfo.ByteRate = byteRate; ReportUploadProgress(statusDescription, uploadInfo); }
public void ReportUploadProgress(string statusDescription, UploadInfo uploadInfo) { if (uploadInfo.Stage == AttachmentStage.Completed) { Caption = GetAttachmentCountCaption(); } if (OnAttachmentProgress != null) { OnAttachmentProgress(this, new UploadProgressArgs { FilePath = uploadInfo.FilePath, FileSize = uploadInfo.FileSize, BytesUploaded = uploadInfo.UploadedBytes, Stage = uploadInfo.Stage, Status = uploadInfo.Status, DownloadLink = uploadInfo.DownloadLink, }); } if (OnJobProgress != null) { OnJobProgress(this, EventArgs.Empty); } }