AuthenticationHandler.SendAsync(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.
Sends a HTTP request and retries the request when the response is unauthorized. This can happen when a token from the cache expires between graph getting the request and the backend receiving the request
protected override System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync (System.Net.Http.HttpRequestMessage httpRequestMessage, 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 (httpRequestMessage As HttpRequestMessage, cancellationToken As CancellationToken) As Task(Of HttpResponseMessage)
Parameters
- httpRequestMessage
- HttpRequestMessage
The HttpRequestMessage to send.
- cancellationToken
- CancellationToken
The CancellationToken for the request.