If you find the information in this post useful and want to learn more about dependency injection, may I suggest viewing my new course on Pluralsight – “Dependency Injection in ASP.NET Core“? I dive deeply the Microsoft DI container and how to use all of its features in your applications. Since its release, ASP.NET Core […]
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 […]
Upgrading an ASP.NET Core 2.0 application to ASP.NET Core 2.1 (preview 1)
The first official preview of ASP.NET Core 2.1 was released yesterday. I’ve been playing around with the nightly builds for various parts of ASP.NET Core 2.1 for the last few months and finally I was able to move to the official preview 1 packages on NuGet rather than the MyGet feeds. I wanted to test […]
ASP.NET Core Anatomy – How does UseStartup work? Exploring how UseStartup results in your Startup methods being registered and executed.
I was recently explaining to someone the basics of the program flow for an ASP.NET Core application. One of the things included in the templates for ASP.NET Core and used very often is the UseStartup<T> extension method on the IWebHostBuilder. This gets called from our Program.cs when initialising the application. UseStartup allows us to set […]
ASP.NET Core Anatomy Index An index of posts which deep dive into the internals of ASP.NET Core
This post acts as an index of the various ASP.NET Core anatomy posts I have written. Each of these deeps dives into the ASP.NET Core code base to understand how the internals work. Part 1 – What happens when the AddMvcCore extension is called? Part 2 – What happens when the AddMvc extension is called? […]