AuthenticateRequestAsyncCallback Delegate
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.
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.