Table of Contents

Class ThrottleDelegatingHandler

Namespace
DocuWare.Platform.ServerClient
Assembly
DocuWare.Platform.ServerClient.dll
public class ThrottleDelegatingHandler : DelegatingHandler, IDisposable
Inheritance
ThrottleDelegatingHandler
Implements
Inherited Members

Constructors

ThrottleDelegatingHandler(HttpMessageHandler)

public ThrottleDelegatingHandler(HttpMessageHandler innerHandler)

Parameters

TypeNameDescription
HttpMessageHandlerinnerHandler

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

TypeNameDescription
HttpRequestMessagerequest

The HTTP request message to send to the server.

CancellationTokencancellationToken

A cancellation token to cancel operation.

Returns

TypeDescription
Task<HttpResponseMessage>

The task object representing the asynchronous operation.

Overrides

DelegatingHandler.SendAsync(HttpRequestMessage, CancellationToken)

Exceptions

TypeCondition
ArgumentNullException

The request was null.

OperationCanceledException

The cancellation token was canceled. This exception is stored into the returned task.