![PayloadSenderV2 NullReferenceException when stopping a dotnet core IHostedService background service - APM - Discuss the Elastic Stack PayloadSenderV2 NullReferenceException when stopping a dotnet core IHostedService background service - APM - Discuss the Elastic Stack](https://aws1.discourse-cdn.com/elastic/original/3X/c/6/c6d4ca8b29f263791bbddddf8f15804d81a66e8b.png)
PayloadSenderV2 NullReferenceException when stopping a dotnet core IHostedService background service - APM - Discuss the Elastic Stack
![dotnet console app, using generic host, HostedService, Windows Task Scheduler stays in running state - Stack Overflow dotnet console app, using generic host, HostedService, Windows Task Scheduler stays in running state - Stack Overflow](https://i.stack.imgur.com/3FSrB.png)
dotnet console app, using generic host, HostedService, Windows Task Scheduler stays in running state - Stack Overflow
![Implementing background tasks in .NET Core 2.x webapps or microservices with IHostedService and the BackgroundService class - Cesar de la Torre Implementing background tasks in .NET Core 2.x webapps or microservices with IHostedService and the BackgroundService class - Cesar de la Torre](https://devblogs.microsoft.com/cesardelatorre/wp-content/uploads/sites/32/2017/11/IHostedServices.png)
Implementing background tasks in .NET Core 2.x webapps or microservices with IHostedService and the BackgroundService class - Cesar de la Torre
GitHub - jonsagara/HttpClientTestNotHostedServiceFSharp: A .NET Core console app that uses Generic Host, but does not use an IHostedService. This time, in F#!
![Introducing IHostLifetime and untangling the Generic Host startup interactions: Exploring ASP.NET Core 3.0 - Part 5 Introducing IHostLifetime and untangling the Generic Host startup interactions: Exploring ASP.NET Core 3.0 - Part 5](https://andrewlock.net/content/images/2019/program_startup.png)