ProviderManager
- Articolo
-
-
The ProviderManager manages access to the globally configured IProvider instance and any state change events as users sign in and out.
Available in the CommunityToolkit.Authentication
package.
Properties
Property |
Type |
Description |
ClientName |
string |
(Static) Gets the name of the toolkit client to identify self in Graph calls. |
Instance |
ProviderManager |
(Static) Get or set the instance of the globally configured IProvider. |
State |
ProviderState |
Gets the current authentication state of the provider. |
Events
Event |
Type |
Description |
ProviderUpdated |
EventHandler<IProvider> |
Event called when the IProvider changes. |
ProviderStateChanged |
EventHandler<ProviderStateChangedEventArgs> |
Event called when the IProvider changes. |
ProviderStateChangedEventArgs Object
Property |
Type |
Description |
OldState |
ProviderState |
Gets the previous state of the IProvider. |
NewState |
ProviderState |
Gets the new state of the IProvider. |
ProviderState Enum
Name |
Description |
Loading |
The user's status is not known. |
SignedOut |
The user is signed-out. |
SignedIn |
The user is signed-in. |