How To Use Multiple Implementations of an Interface in .NET Core

Registering and retrieving multiple implementations from the IoC container

Clyde D'Souza
Level Up Coding
Published in
7 min readOct 19, 2023

--

Featured image of this article showing two identical looking flowers loosely representing the topic of this article.
Image source: Unsplash

Introduction

Dependency injection is built into ASP.NET Core allowing developers to achieve Inversion of Control (IoC) between classes and their dependencies. Normally, if class A calls a method on…

--

--