BaseProvider 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 base construct for building Graph Providers on top of.
public abstract class BaseProvider : CommunityToolkit.Authentication.IProvider
type BaseProvider = class
interface IProvider
Public MustInherit Class BaseProvider
Implements IProvider
- Inheritance
-
BaseProvider
- Derived
- Implements
Constructors
| BaseProvider() |
Initializes a new instance of the BaseProvider class. |
Properties
| CurrentAccountId |
Gets the id of the currently signed in user account. |
| State |
Gets or sets the current state of the provider. |
Methods
| AddSdkVersion(HttpRequestMessage) |
Append the Sdk version to the request headers. |
| AuthenticateRequestAsync(HttpRequestMessage) |
Authenticate an outgoing request. |
| GetTokenAsync(Boolean) |
Retrieve a token for the authenticated user. |
| SignInAsync() |
Sign in the user. |
| SignOutAsync() |
Sign out the user. |
| TrySilentSignInAsync() |
Tries to check if the user is logged in without prompting to login. |
Events
| StateChanged |
Event called when the login State changes. |
Extension Methods
| GetBetaClient(IProvider) |
Gets a GraphServiceClient instance based on the current GlobalProvider, but configured for the beta endpoint. |
| GetClient(IProvider) |
Gets a GraphServiceClient instance based on the current GlobalProvider. |