-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
Taskneither bug nor feature but something that needs to be done in support of eitherneither bug nor feature but something that needs to be done in support of eitherarea-core-hostingExtensions / Hosting / AppBuilder / StartupExtensions / Hosting / AppBuilder / Startup
Milestone
Description
Look into using hosted services. This would replace the icky IMauiInitializeService that was added in #2137, and also to enable users to use hosted services. MAUI will automatically call StartAsync/StopAsync at the appropriate time. Sadly, this pattern is async-only, whereas in MAUI the call sites are always (or at least almost always) sync. But given that this is app startup/shutdown, doing async-over-sync might be OK (we would block).
This is a follow-up to PR #2137.
Other notes:
- Need to consider this when implementing: Run user defined hosted services before the server starts. aspnetcore#36122
halter73, lrgar, RayKoopa, hflexgrig, AmrAlSayed0 and 25 morepjmagee and sfmskywalker
Metadata
Metadata
Assignees
Labels
Taskneither bug nor feature but something that needs to be done in support of eitherneither bug nor feature but something that needs to be done in support of eitherarea-core-hostingExtensions / Hosting / AppBuilder / StartupExtensions / Hosting / AppBuilder / Startup