Click or drag to resize

FileDownloadManagerHttpClientWithProgress Class

https://www.emgu.com
An http client with progress based on source code from https://stackoverflow.com/questions/20661652/progress-bar-with-httpclient with modification
Inheritance Hierarchy
SystemObject
  System.Net.HttpHttpMessageInvoker
    System.Net.HttpHttpClient
      Emgu.ModelsFileDownloadManagerHttpClientWithProgress

Namespace:  Emgu.Models
Assembly:  Emgu.TF.Lite.Models (in Emgu.TF.Lite.Models.dll) Version: 2.19.0.1709+574f567263f3c76bb77304b9eeb79ab6660ba101
Syntax
public class HttpClientWithProgress : HttpClient

The FileDownloadManagerHttpClientWithProgress type exposes the following members.

Constructors
  NameDescription
Public methodFileDownloadManagerHttpClientWithProgress
Initializes a new instance of the FileDownloadManagerHttpClientWithProgress class
Top
Properties
  NameDescription
Public propertyBaseAddress
Gets or sets the base address of Uniform Resource Identifier (URI) of the Internet resource used when sending requests.
(Inherited from HttpClient.)
Public propertyDefaultRequestHeaders
Gets the headers which should be sent with each request.
(Inherited from HttpClient.)
Public propertyMaxResponseContentBufferSize
Gets or sets the maximum number of bytes to buffer when reading the response content.
(Inherited from HttpClient.)
Public propertyTimeout
Gets or sets the timespan to wait before the request times out.
(Inherited from HttpClient.)
Top
Methods
  NameDescription
Public methodCancelPendingRequests
Cancel all pending requests on this instance.
(Inherited from HttpClient.)
Public methodDeleteAsync(String)
Send a DELETE request to the specified Uri as an asynchronous operation.
(Inherited from HttpClient.)
Public methodDeleteAsync(Uri)
Send a DELETE request to the specified Uri as an asynchronous operation.
(Inherited from HttpClient.)
Public methodDeleteAsync(String, CancellationToken)
Send a DELETE request to the specified Uri with a cancellation token as an asynchronous operation.
(Inherited from HttpClient.)
Public methodDeleteAsync(Uri, CancellationToken)
Send a DELETE request to the specified Uri with a cancellation token as an asynchronous operation.
(Inherited from HttpClient.)
Public methodDispose
Releases the unmanaged resources and disposes of the managed resources used by the HttpMessageInvoker.
(Inherited from HttpMessageInvoker.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the HttpClient and optionally disposes of the managed resources.
(Inherited from HttpClient.)
Public methodDownloadFileTaskAsync
Download file asynchronously
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAsync(String)
Send a GET request to the specified Uri as an asynchronous operation.
(Inherited from HttpClient.)
Public methodGetAsync(Uri)
Send a GET request to the specified Uri as an asynchronous operation.
(Inherited from HttpClient.)
Public methodGetAsync(String, HttpCompletionOption)
Send a GET request to the specified Uri with an HTTP completion option as an asynchronous operation.
(Inherited from HttpClient.)
Public methodGetAsync(String, CancellationToken)
Send a GET request to the specified Uri with a cancellation token as an asynchronous operation.
(Inherited from HttpClient.)
Public methodGetAsync(Uri, HttpCompletionOption)
Send a GET request to the specified Uri with an HTTP completion option as an asynchronous operation.
(Inherited from HttpClient.)
Public methodGetAsync(Uri, CancellationToken)
Send a GET request to the specified Uri with a cancellation token as an asynchronous operation.
(Inherited from HttpClient.)
Public methodGetAsync(String, HttpCompletionOption, CancellationToken)
Send a GET request to the specified Uri with an HTTP completion option and a cancellation token as an asynchronous operation.
(Inherited from HttpClient.)
Public methodGetAsync(Uri, HttpCompletionOption, CancellationToken)
Send a GET request to the specified Uri with an HTTP completion option and a cancellation token as an asynchronous operation.
(Inherited from HttpClient.)
Public methodGetByteArrayAsync(String)
Sends a GET request to the specified Uri and return the response body as a byte array in an asynchronous operation.
(Inherited from HttpClient.)
Public methodGetByteArrayAsync(Uri)
Send a GET request to the specified Uri and return the response body as a byte array in an asynchronous operation.
(Inherited from HttpClient.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetStreamAsync(String)
Send a GET request to the specified Uri and return the response body as a stream in an asynchronous operation.
(Inherited from HttpClient.)
Public methodGetStreamAsync(Uri)
Send a GET request to the specified Uri and return the response body as a stream in an asynchronous operation.
(Inherited from HttpClient.)
Public methodGetStringAsync(String)
Send a GET request to the specified Uri and return the response body as a string in an asynchronous operation.
(Inherited from HttpClient.)
Public methodGetStringAsync(Uri)
Send a GET request to the specified Uri and return the response body as a string in an asynchronous operation.
(Inherited from HttpClient.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPostAsync(String, HttpContent)
Send a POST request to the specified Uri as an asynchronous operation.
(Inherited from HttpClient.)
Public methodPostAsync(Uri, HttpContent)
Send a POST request to the specified Uri as an asynchronous operation.
(Inherited from HttpClient.)
Public methodPostAsync(String, HttpContent, CancellationToken)
Send a POST request with a cancellation token as an asynchronous operation.
(Inherited from HttpClient.)
Public methodPostAsync(Uri, HttpContent, CancellationToken)
Send a POST request with a cancellation token as an asynchronous operation.
(Inherited from HttpClient.)
Public methodPutAsync(String, HttpContent)
Send a PUT request to the specified Uri as an asynchronous operation.
(Inherited from HttpClient.)
Public methodPutAsync(Uri, HttpContent)
Send a PUT request to the specified Uri as an asynchronous operation.
(Inherited from HttpClient.)
Public methodPutAsync(String, HttpContent, CancellationToken)
Send a PUT request with a cancellation token as an asynchronous operation.
(Inherited from HttpClient.)
Public methodPutAsync(Uri, HttpContent, CancellationToken)
Send a PUT request with a cancellation token as an asynchronous operation.
(Inherited from HttpClient.)
Public methodSendAsync(HttpRequestMessage)
Send an HTTP request as an asynchronous operation.
(Inherited from HttpClient.)
Public methodSendAsync(HttpRequestMessage, HttpCompletionOption)
Send an HTTP request as an asynchronous operation.
(Inherited from HttpClient.)
Public methodSendAsync(HttpRequestMessage, CancellationToken)
Send an HTTP request as an asynchronous operation.
(Inherited from HttpClient.)
Public methodSendAsync(HttpRequestMessage, HttpCompletionOption, CancellationToken)
Send an HTTP request as an asynchronous operation.
(Inherited from HttpClient.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventDownloadProgressChanged
Handle download download progress change.
Top
See Also