Return to site

Store background task host

broken image
broken image

To enable Background processing, you need to create a class which implements IHostedService interface. NET Core 2.1, Microsoft introduced a new feature called IHostedService to allow developers to run a background service that can have a managed lifetime to its caller, be it from an ASP.NET Core or a console.

broken image

This post is about running background tasks in ASP.NET Core.