/// <summary> /// Updated the component with the latest upload progress. /// </summary> /// <param name="fileEntry">Currently processed file entry.</param> /// <param name="progressProgress">Progress value.</param> /// <returns>A task that represents the asynchronous operation.</returns> internal async Task UpdateFileProgressAsync(IFileEntry fileEntry, long progressProgress) { ProgressProgress += progressProgress; var progress = Math.Round((double)ProgressProgress / ProgressTotal, 3); if (Math.Abs(progress - Progress) > double.Epsilon) { Progress = progress; await Progressed.InvokeAsync(new FileProgressedEventArgs( fileEntry, Progress )); } }