コード例 #1
0
ファイル: HxInputFileCore.cs プロジェクト: havit/Havit.Blazor
        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);
        }
コード例 #2
0
ファイル: HxInputFileCore.cs プロジェクト: havit/Havit.Blazor
 /// <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);