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

Опубликовано: 09 Март 2023
на канале: 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!


Смотрите видео How to build background tasks with hosted services in ASP NET Core | DOTNET CORE онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Learn Smart Coding 09 Март 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,842 раз и оно понравилось 27 людям.