ASP.NET Core: Inject all instances of interface

added by DotNetKicks
8/5/2019 4:10:50 PM

210 Views

We all probably know how to inject instance of interface to class using dependency injection in ASP.NET Core. But how can we inject all instances of interface to some class, let's say controller? The trick is simple and it's shown in this blog post. NB!


0 comments