dotnet-labs / ServiceWorkerCronJob

Schedule Cron Jobs using HostedService in ASP.NET Core
MIT License
265 stars 71 forks source link

Start the task after all the startup tasks are completed #5

Closed vengi83644 closed 4 years ago

vengi83644 commented 4 years ago

Is is possible to do this?

I am accessing the Configuration in my DoWork.

changhuixu commented 4 years ago

Hi @vengi83644 , The HostedService jobs will start as the application starts. And, the Configuration is a singleton, which should be available if you inject it to your class. What do you mean "after all the startup tasks" and ""accessing the Configuration"? Could you elaborate your question a little bit more?

vengi83644 commented 4 years ago

Never mind. Sorry. My bad.