Method ApplyAuthorizationAsync
ApplyAuthorizationAsync(Request, HttpRequestMessage, CancellationToken)
Obtains and supplies the authorization information as the required
HTTP headers.
Declaration
public Task ApplyAuthorizationAsync(Request request, HttpRequestMessage message, CancellationToken cancellationToken)
Parameters
Returns
Type |
Description |
Task |
Task that completes when the required
authorization information is obtained and added to the
request message . |
Implements
Exceptions
Type |
Condition |
AuthorizationException |
If failed to obtain
the required authorization information. Use this exception to
wrap any provider-specific exception. |