ProviderManager Class

Definition

Shared provider manager used by controls in Microsoft.Toolkit.Graph.Controls to authenticate and call the Microsoft Graph.

C#
public class ProviderManager
C#
public class ProviderManager : System.ComponentModel.INotifyPropertyChanged
Inheritance
ProviderManager
Implements

Examples

To set your own existing provider:

ProviderManager.Instance.GlobalProvider = await MsalProvider.CreateAsync(...);

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.

Events

PropertyChanged
ProviderUpdated

Event called when the IProvider changes.

Applies to

Product Versions
Windows Community Toolkit 6.1.1, 7.0.0