As regular readers will be aware, an area of .NET which I follow closely is Microsoft.Extensions.Hosting. I’ve already blogged about a change in .NET 8, where new concurrency options have been introduced to support parallel running of the StartAsync and StopAsync across multiple IHostedServices. In this post, we’ll look at some new lifecycle events introduced […]
Tag: hosting
Concurrent Hosted Service Start and Stop in .NET 8
In this post, I will describe a new feature of the Microsoft.Extensions.Hosting library coming in .NET 8 (available since preview 4) affecting hosted services. Let’s first begin with a brief recap of hosted services. The hosting library for .NET, used in both the ASP.NET Core project template and the Worker Service template, provides the capability […]
Running a .NET Core Generic Host App as a Windows Service
NOTE: This content is now a little out of date. I plan to create a new post with the current steps as of .NET Core 3.1. Until then, I also cover this in my new course on Pluralsight – “Building ASP.NET Core Hosted Services and .NET Core Worker Services“. I received a question at the […]