Compartilhar via


ClientHandler.SendAsync(HttpRequestMessage, CancellationToken) Método

Definição

Isso adapta HttpRequestMessages para ASP.NET Core solicitações, as envia por meio do pipeline e retorna o HttpResponseMessage associado.

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)

Parâmetros

cancellationToken
CancellationToken

O CancellationToken.

Retornos

Um Task<TResult> retornando o HttpResponseMessage.

Aplica-se a