Nov 08, 2019 12:37 PM|mgebhard|LINK
I know there is HostedService but the problem is that the HostedService starts when the server starts, and as far as I know there is no way to start the HostedService manually from a controller.
IMHO, the hosted service should be designed to idle until you have something for the service to do. For example, the controller can add a record to table or a queue. When the service sees a new item it processes the message.
Just Google for a solution there's a lot of source code on the internet.