SendAsync(HttpRequestMessage, CancellationToken)
override
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.
Parameters
requestHttpRequestMessage- The HTTP request message to send to the server.
cancellationTokenCancellationToken- A cancellation token to cancel operation.
Returns
The task object representing the asynchronous operation.
Exceptions
System.ArgumentNullException- The
requestwasnull. System.OperationCanceledException- The cancellation token was canceled. This exception is stored into the returned task.
