How to Resolve Multiple Dependency Injection Implementations of the Same Interface in .NET

Опубликовано: 30 Октябрь 2024
на канале: Code Maze
2,124
90

►► Check out our courses: https://bit.ly/cdmz-courses
►► Support us on Patreon and get the source code:   / codemaze  

I will talk about one interesting challenge we all faced in our .NET projects - resolving multiple implementations of the same interface with the dependency injection.

You will see that using the default dependency injection container offered by ASP.NET Core may reveal that the task, I will talk about, is more challenging than it initially appears.

Well, let’s see it with an example.

LINKS MENTIONED IN THE VIDEO
►► Factory Pattern with DI -    • How to Use Factory Pattern With Depen...  

FOLLOW US ON SOCIAL MEDIA!
►►   / marinko-spasojevic  
►►   / codemazeblog  
►►   / codemazeblog