ClientHandler.Send(HttpRequestMessage, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- request
- HttpRequestMessage
The HttpRequestMessage.
- cancellationToken
- CancellationToken
The CancellationToken.
Returns
Exceptions
Thrown unconditionally.
Remarks
Use the asynchronous version of this method, SendAsync(HttpRequestMessage, CancellationToken), instead.