Udostępnij za pośrednictwem


ClientHandler.SendAsync(HttpRequestMessage, CancellationToken) Metoda

Definicja

Spowoduje to dostosowanie httpRequestMessages do ASP.NET Core żądań, wysłanie ich za pośrednictwem potoku i zwrócenie skojarzonego komunikatu HttpResponseMessage.

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)

Parametry

cancellationToken
CancellationToken

Element CancellationToken.

Zwraca

Zwraca Task<TResult> wartość HttpResponseMessage.

Dotyczy