- 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.

Creating a 'pooled' dependency injection lifetime
In this post I investigate how to create a 'pooled' dependency injection scope that automatically pools services between multiple requests…

Going beyond singleton, scoped, and transient lifetimes—tenant, pooled, and drifter
In this post I investigate some 'experimental' dependency injection scopes that provide additional features over Singleton, Scoped, and Transient…

Keyed service dependency injection container support
Exploring the .NET 8 preview - Part 6
In this post I discuss the new "keyed service" support for the dependency injection container, introduced in .NET 8 preview 7…

The dangers and gotchas of using scoped services in OptionsBuilder
In this post I look at the problems you can hit with strongly-typed settings when you inject Scoped services into OptionsBuilder, and how to avoid them…

New dependency injection features in .NET 6
Exploring .NET 6 - Part 10
In this post I talk about some of the new features added to the DI libraries in .NET 6, as well a performance feature that didn't make it in.…

Using Quartz.NET with ASP.NET Core and worker services
In this post I show how to run Quartz.NET jobs in ASP.NET Core and worker service apps using the Quartz.Extensions.Hosting package…

