Ejemplo n.º 1
0
 /// <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);
     }
 }
Ejemplo n.º 2
0
        /// <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);
 }