How to build background tasks with hosted services in ASP NET Core | DOTNET CORE

Published: 09 March 2023
on channel: Learn Smart Coding
1,842
27

Hi Friends,

In this video, we are going to see How to build Background tasks with hosted services in ASP.NET Core.

In ASP.NET Core, background tasks can be implemented as hosted services. A hosted service is a class with background task logic that implements the IHostedService interface. This article provides three hosted service examples:

A background task that runs on a timer.
Hosted service that activates a scoped service. The scoped service can use dependency injection (DI).
Queued background tasks that run sequentially.

Source code :
https://github.com/learnsmartcoding/E...

Please post your questions in the comment section and I will be happy to answer your questions.

Subscribe for more useful videos just like this:    / @learnsmartcoding  

Happy coding!


Watch video How to build background tasks with hosted services in ASP NET Core | DOTNET CORE online without registration, duration hours minute second in high quality. This video was added by user Learn Smart Coding 09 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,842 once and liked it 27 people.