Добавлено: 25 июня 2022 г.
Sometimes your web app needs to do work in the background periodically e.g. to sync data. This article provides a walkthrough how to implement such a background task and how to enabled/disable a background task during runtime using a RESTful API and hosted services.
Here’s the intro from the Microsoft Docs, read more here: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services
In ASP.NET Core, background tasks can be implemented as hosted services. A hosted service is a class...
далее...