/// <summary> /// Notifies the component that file upload has ended. /// </summary> /// <param name="fileEntry">Uploaded file entry.</param> /// <param name="success">True if the file upload was successful.</param> /// <returns>A task that represents the asynchronous operation.</returns> internal async Task UpdateFileEndedAsync(IFileEntry fileEntry, bool success) { if (AutoReset) { await Reset(); } await Ended.InvokeAsync(new FileEndedEventArgs( fileEntry, success )); }
protected async Task OnEnded(EventArgs _) { await Ended.InvokeAsync(null); }
internal Task UpdateFileEndedAsync(IFileEntry fileEntry, bool success) { return(Ended.InvokeAsync(new FileEndedEventArgs(fileEntry, success))); }