So let\'s say I have a singleton class instance that I register in the DI like this:
services.AddSingleton();
And let\'s s
I got the same problem and I find Andrew Lock blog: https://andrewlock.net/running-async-tasks-on-app-startup-in-asp-net-core-3/
He explains how to do this with asp .net core 3, but he also refers to his pages on how to to this with previous version.