Using HostBuilder and the Generic Host in .NET Core Microservices Exploring a simple pattern for cross-cutting concerns in console based services.

NOTE: This content is now quite out of date. I have a new post “What are .NET Worker services?” which answers that question. Worker services are a much better alternative to the example below. I also cover them in detail in my new course on Pluralsight – “Building ASP.NET Core Hosted Services and .NET Core […]

Read More

Implementing IHostedService in ASP.NET Core 2.0 Use IHostedService to run background tasks in ASP.NET Core apps

NOTE: This content is now quite out of date. The implementation described below is now available in .NET Core by deriving from the BackgroundService class. I cover this topic in detail in my new course on Pluralsight – “Building ASP.NET Core Hosted Services and .NET Core Worker Services“. Update 30-08-2017: ASP.NET Core 2.0.0 is now […]

Read More