Table of Contents

Class PriorityHttpMessageHandler

Namespace
Apizr
Assembly
Apizr.Integrations.Fusillade.dll
public class PriorityHttpMessageHandler : LimitingHttpMessageHandler, IDisposable
Inheritance
LimitingHttpMessageHandler
PriorityHttpMessageHandler
Implements
Inherited Members

Constructors

PriorityHttpMessageHandler(HttpMessageHandler, ILogger, IApizrManagerOptionsBase, long?, OperationQueue)

public PriorityHttpMessageHandler(HttpMessageHandler innerHandler, ILogger logger, IApizrManagerOptionsBase apizrOptions, long? maxBytesToRead = null, OperationQueue opQueue = null)

Parameters

innerHandler HttpMessageHandler
logger ILogger
apizrOptions IApizrManagerOptionsBase
maxBytesToRead long?
opQueue OperationQueue

Methods

ResetLimit(long?)

Resets the total limit of bytes to read. This is usually called when the app resumes from suspend, to indicate that we should fetch another set of data.

public override void ResetLimit(long? maxBytesToRead = null)

Parameters

maxBytesToRead long?

The maximum number of bytes to read.

SendAsync(HttpRequestMessage, CancellationToken)

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

Parameters

request HttpRequestMessage
cancellationToken CancellationToken

Returns

Task<HttpResponseMessage>