Use keyed services in AspNet Core

A few years ago I wrote an article describing how ASP.NET Core DI container behaves when multiple implementations of an interface are registered. It's time to revisit the concept because .NET 8 has something better to offer -- Keyed Services. I am going to use the same example that I used in the earlier article. We will modify the example for .NET 8.

https://www.binaryintellect.net/articles/9a08452a-8ee5-4d6b-adde-26908b8ba69b.aspx