Skip to content

RateLimitedHttpMessageHandler.SendAsync(HttpRequestMessage, CancellationToken) method

Defined in

Type: RateLimitedHttpMessageHandler Namespace: Fusillade.Reactive Assembly: Fusillade.Reactive.dll

Applies to

net10.0, net9.0, net8.0, net462, net481

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

View source

Inherited documentation

These docs were inherited from DelegatingHandler. The member doesn't override them on this type.

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

Parameters

NameTypeDescription
requestHttpRequestMessageThe HTTP request message to send to the server.
cancellationTokenCancellationTokenA cancellation token to cancel operation.

Returns: Task -- The task object representing the asynchronous operation.

Exceptions

TypeCondition
System.ArgumentNullExceptionThe request was null.
System.OperationCanceledExceptionThe cancellation token was canceled. This exception is stored into the returned task.