1 instantiation of LifecycleEventRegistration
Microsoft.Maui (1)
Hosting\LifecycleEvents\AppHostBuilderExtensions.cs (1)
30
builder.Services.AddSingleton<LifecycleEventRegistration>(new
LifecycleEventRegistration
(configureDelegate));
4 references to LifecycleEventRegistration
Microsoft.Maui (4)
Hosting\LifecycleEvents\AppHostBuilderExtensions.cs (2)
27
builder.Services.TryAddSingleton<ILifecycleEventService>(sp => new LifecycleEventService(sp.GetServices<
LifecycleEventRegistration
>()));
30
builder.Services.AddSingleton<
LifecycleEventRegistration
>(new LifecycleEventRegistration(configureDelegate));
LifecycleEvents\LifecycleEventService.cs (2)
11
public LifecycleEventService(IEnumerable<
LifecycleEventRegistration
> registrations)
15
foreach (
var
registrationAction in registrations)