Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Is it possible to Start multiple instances of a (Thread or Background Worker) from a Blazor Program and Start them inside .net Aspire

$
0
0

I want to run a Worker (as Thread or Background Worker) multiple times inside a .net Aspire AppHost Project which is started from a Blazor Website.I have the Projects (AppHost [Aspire], Web [Blazor], Worker [dll]).

Since I'm now to Aspire I don't know it this is even possible or how to do it.

I tried using the aspire builder.Services.AddHostedServices(); whitch did not work due to the namespace not beeing found because ot the using Projects; whitch is needed for the blazor project as far as i understeand.

I also tried registering it as a project whitch kinda worked.. well at least it startet event if only once and only at the boot without any controll over it via the web project.


Viewing all articles
Browse latest Browse all 4839

Trending Articles