Table of Contents

Class FileDownloadManager.HttpClientWithProgress

Namespace
Emgu.Util
Assembly
Emgu.CV.dll

An http client with progress based on source code from https://stackoverflow.com/questions/20661652/progress-bar-with-httpclient with modification

public class FileDownloadManager.HttpClientWithProgress : HttpClient, IDisposable
Inheritance
FileDownloadManager.HttpClientWithProgress
Implements
Inherited Members

Constructors

HttpClientWithProgress()

public HttpClientWithProgress()

Methods

DownloadFileTaskAsync(string, string)

Download file asynchronously

public Task DownloadFileTaskAsync(string downloadUrl, string destinationFilePath)

Parameters

downloadUrl string

The download url

destinationFilePath string

The destination file path

Returns

Task

The task

Events

DownloadProgressChanged

Handle download download progress change.

public event FileDownloadManager.DownloadProgressChangedEventHandler DownloadProgressChanged

Event Type

FileDownloadManager.DownloadProgressChangedEventHandler