blog.rsuter.com · Nov 21, 2020
The default .NET dependency injection container does not provide a way to register named services. This article shows a technique to solve this by adding a generic marker parameter to the service interface so that it can be registered multiple times and resolved with the marker type.