Ninject - How to dynamically select an implementation to bind to an interface
问题 I'm currently using Ninject to create instances of interfaces in a WCF Services application. Bind<IObjA>().To<ObjA>().InRequestScope(); Bind<IObjB>().To<ObjB>().InRequestScope(); Bind<IObjC>().To<ObjC>().InRequestScope(); It works great, but we are going to have several implementations of IObjC. What options do I have for continuing fluid assignment of implementation to interface for IObjA/IObjB but allowing for configurable assignment for IObjC? I found a related question on SO but I don't