

It greatly simplifies the use of standardized configuration, dependency injection, and logging – all things that you wouldn’t normally associate with “quick and dirty” tests. I’ve started using Generic Host for practically everything, even quick-and-dirty one-off console test apps. NET Core, there isn’t anything about Generic Host which is inherently tied to ASP.NET Core, but for some reason it’s still hosted in that repository. NET Core 3.0 release, ASP.NET was migrated off the old (but similar) WebHost model to Generic Host. NET Core 2.1 introduced something called the Generic Host, which is a model for hosting Task-based asynchronous services side-by-side. Lifecycle of Generic Host Background ServicesĬleaner startup by separating execution from initialization.
