private async Task DownloadFile(UploadFileItem item) { if (item.State == UploadState.Success && OnDownload.HasDelegate) { await OnDownload.InvokeAsync(item); } }
private async Task OnDownloadClicked() { var downloadTask = OnDownload.InvokeAsync(this.VideoModel); await downloadTask; }