Share via


ClientHandler.Send(HttpRequestMessage, CancellationToken) Method

Definition

This synchronous method is not supported due to the risk of threadpool exhaustion when running multiple tests in parallel.

protected override System.Net.Http.HttpResponseMessage Send (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken);
override this.Send : System.Net.Http.HttpRequestMessage * System.Threading.CancellationToken -> System.Net.Http.HttpResponseMessage
Protected Overrides Function Send (request As HttpRequestMessage, cancellationToken As CancellationToken) As HttpResponseMessage

Parameters

cancellationToken
CancellationToken

The CancellationToken.

Returns

Exceptions

Thrown unconditionally.

Remarks

Use the asynchronous version of this method, SendAsync(HttpRequestMessage, CancellationToken), instead.

Applies to