Beispiel #1
0
        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);
        }
Beispiel #2
0
 /// <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);