It is possible with Ninject (Most recent version) to bind an interface to a type in a specific class ? By that i mean… lets say i have two classes..
ClassA and ClassB, both have IContext injection in the constructor.. it is possible to say bind type IContext to ContextA for ClassA and IContext to ContextB to ClassB ?
Instead of using named bindings you can also use conditional bindings which requires less code and is more typesafe: