How to Handle Background Tasks in .NET Core Using Hosted Services?

Asked 1 year ago
Updated 1 year ago
Viewed 1172 times

0

I must run periodic background tasks in my .NET Core application (e.g., every hour data cleanup). What is the best way to use IHostedService or BackgroundService for this purpose? Are there any caveats to watch out for?


0 Answer


Your Answer