Asp.Net Core Background Service

In priveous article about Hosted service, we have seen how the service run in background

code for hostedservice in github: https://github.com/pbndru/Phani.HostedService

We can do many tasks in background like updating database status to complete

Here when we use BackgroundService we will override the ExecuteAsync method

The difference between HostedService and BackgroundService is BackgroundService by default takes care of Start and Stop Async

code in my github: https://github.com/pbndru/Phani.BackgroundService

Leave a comment