Edit

Share via


ProviderManager Class

Definition

Shared provider manager used by controls and helpers to authenticate and call the Microsoft Graph.

public class ProviderManager : System.ComponentModel.INotifyPropertyChanged
type ProviderManager = class
    interface INotifyPropertyChanged
Public Class ProviderManager
Implements INotifyPropertyChanged
Inheritance
ProviderManager
Implements

Examples

To set your own existing provider:

ProviderManager.Instance.GlobalProvider = await new MsalProvider(clientId, scopes);

Fields

ClientName

Gets the name of the toolkit client to identify self in Graph calls.

Properties

GlobalProvider

Gets or sets the global provider used by all Microsoft.Toolkit.Graph.Controls.

Instance

Gets the instance of the GlobalProvider.

State

Gets the ProviderState of the current GlobalProvider instance. Use for binding scenarios instead of ProviderManager.Instance.GlobalProvider.State.

Events

PropertyChanged
ProviderStateChanged

Event called when the IProvider state changes.

ProviderUpdated

Event called when the IProvider instance changes.

Applies to