- Loading...
Sponsored by Dometrain Courses—Get 30% off Dometrain Pro with code ANDREW30 and access the best courses for .NET Developers

My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.

Controlling IHostedService execution order in ASP.NET Core 3.x
In this post I show how to control whether your IHostedService runs before or after the GenericWebHostService starts the Kestrel HTTP server…

DI scopes in IHttpClientFactory message handlers don't work like you think they do
In this post I discuss how handler DI scopes work in IHttpClientFactory, and how they're different to the request DI scope.…

Exploring the code behind IHttpClientFactory in depth
In this post I look in depth at the code behind the default implementation of IHttpClientFactory and see how it manages HttpClient handler lifetimes.…

Avoiding Startup service injection in ASP.NET Core 3
Upgrading to ASP.NET Core 3.0 - Part 3
In this post I describe the changes to dependency injection in your Startup class when upgrading an ASP.NET Core 2.x app to .NET Core 3.0.…

Running async tasks on app startup in ASP.NET Core 3.0
Exploring ASP.NET Core 3.0 - Part 4
In this post I describe how a small change in the ASP.NET Core 3.0 WebHost makes it easier to run asynchronous tasks on app startup using IHostedService…

New in ASP.NET Core 3: Service provider validation
Exploring ASP.NET Core 3.0 - Part 3
In this post I describe the ValidateOnBuild feature that is new to .NET Core 3.0. I also show five gotchas to look out for that the DI validator will miss.…

