1 instantiation of ApplicationDispatcher
Microsoft.Maui (1)
Hosting\Dispatching\AppHostBuilderExtensions.cs (1)
20
builder.Services.TryAddSingleton<ApplicationDispatcher>((svc) => new
ApplicationDispatcher
(GetDispatcher(svc, false)));
4 references to ApplicationDispatcher
Microsoft.Maui (4)
Hosting\Dispatching\AppHostBuilderExtensions.cs (4)
20
builder.Services.TryAddSingleton<
ApplicationDispatcher
>((svc) => new ApplicationDispatcher(GetDispatcher(svc, false)));
43
return provider.GetRequiredService<
ApplicationDispatcher
>().Dispatcher;
57
return provider.GetService<
ApplicationDispatcher
>()?.Dispatcher;
71
result = services.GetRequiredService<
ApplicationDispatcher
>().Dispatcher;