Partager via


AuthenticateRequestAsyncCallback Delegate

Definition

Represents a delegate that defines the method signature for asynchronously authenticating an HTTP request.

public delegate System.Threading.Tasks.Task AuthenticateRequestAsyncCallback(HttpRequestMessage request, CancellationToken cancellationToken = default);
type AuthenticateRequestAsyncCallback = delegate of HttpRequestMessage * CancellationToken -> Task
Public Delegate Function AuthenticateRequestAsyncCallback(request As HttpRequestMessage, Optional cancellationToken As CancellationToken = Nothing) As Task 

Parameters

request
HttpRequestMessage

The HttpRequestMessage to authenticate.

cancellationToken
CancellationToken

The cancellation token.

Return Value

A Task representing the asynchronous operation.

Applies to