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.