Skip to content

Add hosted service feature for WebAssemblyHost #33537

@WeihanLi

Description

@WeihanLi

Is your feature request related to a problem? Please describe.

I wanna schedule a background service when the Blazor Wasm App loaded, but now the WebAssemblyHost does not support IHostedService, so I'm wondering that if we could add HostedService support for Blazor Wasm App.

Describe the solution you'd like

Start the hosted services in WebAssemblyHost.RunAsync method

Additional context

It may increase the Blazor app size

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.area-blazorIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssembly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions