Take advantage of the inversion of control pattern to loosely couple the components of your application and make them easier to test and maintain. Both inversion of control and dependency injection ...
How to register multiple implementations of an interface with the IoC container in ASP.NET Core and retrieve a specific service at runtime. The built-in support for dependency injection in ASP.NET ...