/// <summary> /// Updates the current progress and call the <see cref="ProgressChanged"/> event to notify listeners. /// </summary> private void UpdateProgress(ResumableUploadProgress progress) { Progress = progress; if (ProgressChanged != null) { ProgressChanged(progress); } }
/// <summary> /// Update the current progress and call the <see cref="ProgressChanged"/> event to /// notify listeners. /// </summary> private void UpdateProgress(UploadStatus status, long byteCount) { var p = new ResumableUploadProgress(status, byteCount); this.Progress = p; if (ProgressChanged != null) { ProgressChanged(p); } }
/// <summary> /// Updates the current progress and call the <see cref="ProgressChanged"/> event to notify listeners. /// </summary> private void UpdateProgress(ResumableUploadProgress progress) { Progress = progress; ProgressChanged?.Invoke(progress); }