Partager via


RetryHandler.SendAsync(HttpRequestMessage, CancellationToken) Method

Definition

Send a HTTP request

protected override System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync (System.Net.Http.HttpRequestMessage httpRequest, System.Threading.CancellationToken cancellationToken);
override this.SendAsync : System.Net.Http.HttpRequestMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Protected Overrides Function SendAsync (httpRequest As HttpRequestMessage, cancellationToken As CancellationToken) As Task(Of HttpResponseMessage)

Parameters

httpRequest
HttpRequestMessage

The HTTP requestHttpRequestMessageneeds to be sent.

cancellationToken
CancellationToken

The CancellationToken for the request.

Returns

Applies to