예제 #1
0
        private void ReqOnProgressChanged(IUploadProgress progress)
        {
            var uploadingPercent = (int)(progress.BytesSent * 100 / fileForUploadSize);

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

            UploadFileProgressChanged?.Invoke(progress.Status.ToString(), progress.BytesSent, uploadingFileBytesAll, uploadingPercent);
        }