AuthorizationMessageHandler Class
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.
A DelegatingHandler that attaches access tokens to outgoing HttpResponseMessage instances. Access tokens will only be added when the request URI is within one of the base addresses configured using ConfigureHandler(IEnumerable<String>, IEnumerable<String>, String).
public ref class AuthorizationMessageHandler : System::Net::Http::DelegatingHandler
public class AuthorizationMessageHandler : System.Net.Http.DelegatingHandler
public class AuthorizationMessageHandler : System.Net.Http.DelegatingHandler, IDisposable
type AuthorizationMessageHandler = class
inherit DelegatingHandler
type AuthorizationMessageHandler = class
inherit DelegatingHandler
interface IDisposable
Public Class AuthorizationMessageHandler
Inherits DelegatingHandler
Public Class AuthorizationMessageHandler
Inherits DelegatingHandler
Implements IDisposable
- Inheritance
-
AuthorizationMessageHandler
- Derived
- Implements
Constructors
AuthorizationMessageHandler(IAccessTokenProvider, NavigationManager) |
Initializes a new instance of AuthorizationMessageHandler. |
Methods
ConfigureHandler(IEnumerable<String>, IEnumerable<String>, String) |
Configures this handler to authorize outbound HTTP requests using an access token. The access token is only attached if at least one of
|
SendAsync(HttpRequestMessage, CancellationToken) | Sends an HTTP request to the inner handler to send to the server as an asynchronous operation. |
Explicit Interface Implementations
IDisposable.Dispose() |