autofac / Autofac.Mvc

ASP.NET MVC integration for Autofac
MIT License
49 stars 23 forks source link

can name injection be supported #31

Closed softlgl closed 2 years ago

softlgl commented 4 years ago

If multiple instances implement the same interface and multiple names are registered at the time of registration, can name be used to distinguish one implementation of the injected interface in the injected concrete implementation class

tillig commented 2 years ago

I think what you're looking for is the KeyFilterAttribute, which isn't specifically tied to MVC support.

If that's not it, we need a lot more here to understand the request, like maybe a small code snippet with something showing what you're trying to do but which isn't working.