共用方式為


AuthenticationHandler.SendAsync(HttpRequestMessage, CancellationToken) Method

Definition

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.

Returns

Applies to