Compartir a través de


ClientHandler.SendAsync(HttpRequestMessage, CancellationToken) Método

Definición

Esto adapta HttpRequestMessages a ASP.NET Core solicitudes, las envía a través de la canalización y devuelve el httpResponseMessage asociado.

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

Devoluciones

que Task<TResult> devuelve .HttpResponseMessage

Se aplica a