The DI trick that predates keyed services in .NET 8
dotnetfiddle.substack.com