I need to run a scheduled task on every new day in asp.net mvc core application. Can I do it, and how?!
thnx
With DotNet Core 2 came up a new interface IHostedService
that will take care of background tasks.
Here you`ll have some examples how to handle schedule tasks.
Building a scheduled task in ASP.NET Core/Standard 2.0
Implementing background tasks in .NET Core 2.x webapps or microservices with IHostedService and the BackgroundService class
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With