Table of Contents

Class ApizrProgressHandler

Namespace
Apizr.Progressing
Assembly
Apizr.Integrations.FileTransfer.dll

The ApizrProgressHandler provides a mechanism for getting progress event notifications when sending and receiving data in connection with exchanging HTTP requests and responses.

public class ApizrProgressHandler : DelegatingHandler, IDisposable
Inheritance
ApizrProgressHandler
Implements
Inherited Members

Constructors

ApizrProgressHandler()

Initializes a new instance of the ApizrProgressHandler class.

public ApizrProgressHandler()

ApizrProgressHandler(HttpMessageHandler)

Initializes a new instance of the ApizrProgressHandler class.

public ApizrProgressHandler(HttpMessageHandler innerHandler)

Parameters

innerHandler HttpMessageHandler

The inner handler to which this handler submits requests.

Methods

SendAsync(HttpRequestMessage, CancellationToken)

Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.

protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)

Parameters

request HttpRequestMessage

The HTTP request message to send to the server.

cancellationToken CancellationToken

A cancellation token to cancel operation.

Returns

Task<HttpResponseMessage>

Returns Task<TResult>. The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

The request was null.