private void ReqOnProgressChanged(IUploadProgress progress) { var uploadingPercent = (int)(progress.BytesSent * 100 / fileForUploadSize); UploadFileProgressChanged?.Invoke(progress.Status.ToString(), progress.BytesSent, fileForUploadSize, uploadingPercent); }
private void Upload_ProgressChanged(IUploadProgress progress) { var uploadingPercent = (int)(progress.BytesSent * 100 / uploadingFileBytesAll); UploadFileProgressChanged?.Invoke(progress.Status.ToString(), progress.BytesSent, uploadingFileBytesAll, uploadingPercent); }