1 implementation of IDispatcherProvider
Microsoft.Maui (1)
Dispatching\DispatcherProvider.cs (1)
6 public partial class DispatcherProvider : IDispatcherProvider
9 references to IDispatcherProvider
Microsoft.Maui (9)
Dispatching\DispatcherProvider.cs (6)
12 static IDispatcherProvider? s_currentProvider; 15 /// Gets the currently set <see cref="IDispatcherProvider"/> instance. 17 public static IDispatcherProvider Current => 23 /// <param name="provider">The <see cref="IDispatcherProvider"/> object to set as the current dispatcher provider.</param> 25 public static bool SetCurrent(IDispatcherProvider? provider) 30 var old = s_currentProvider;
Hosting\Dispatching\AppHostBuilderExtensions.cs (3)
14 builder.Services.TryAddSingleton<IDispatcherProvider>(svc => 62 var provider = services.GetRequiredService<IDispatcherProvider>();