HeaderPropagationMessageHandler.SendAsync Method

Definition

Sends an HTTP request to the inner handler to send to the server as an asynchronous operation, after adding the propagated headers.

protected:
 override System::Threading::Tasks::Task<System::Net::Http::HttpResponseMessage ^> ^ SendAsync(System::Net::Http::HttpRequestMessage ^ request, System::Threading::CancellationToken cancellationToken);
protected override System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync (System.Net.Http.HttpRequestMessage request, 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 (request As HttpRequestMessage, cancellationToken As CancellationToken) As Task(Of HttpResponseMessage)

Parameters

request
HttpRequestMessage

The HTTP request message to send to the server.

cancellationToken
CancellationToken

A cancellation token to cancel operation.

Returns

The task object representing the asynchronous operation.

Remarks

If an header with the same name is already present in the request, even if empty, the corresponding propagated header will not be added.

Applies to