public async Task HandleUploadProgress(int fileIndex, string fileName, long loaded, long total) { var uploadProgress = new UploadProgressEventArgs() { FileIndex = fileIndex, OriginalFileName = fileName, UploadedBytes = loaded, UploadSize = total }; await InvokeOnProgressAsync(uploadProgress); }
/// <summary> /// Triggers the <see cref="OnProgress"/> event. Allows interception of the event in derived components. /// </summary> protected virtual Task InvokeOnProgressAsync(UploadProgressEventArgs args) => OnProgress.InvokeAsync(args);