Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add support for hosted services in .NET MAUI apps #2244

@Eilon

Description

@Eilon

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Taskneither bug nor feature but something that needs to be done in support of eitherarea-core-hostingExtensions / Hosting / AppBuilder / Startup

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions