Table of Contents

Class QueryParameterHandler

Namespace
Autodesk.Common.HttpClientLibrary.Middleware
Assembly
Autodesk.Common.HttpClientLibrary.dll

Middleware extending the uri query parameters

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

Constructors

QueryParameterHandler(QueryParameterHandlerOption?)

public QueryParameterHandler(QueryParameterHandlerOption? errorHandlerOptions = null)

Parameters

errorHandlerOptions QueryParameterHandlerOption

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>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

The request was null.