I\'ve got a class hierarchy like this (simplified): class Connection { } interface IService<T> { } class ServiceImplementation : IService<int>
1) Autofac and Ninject, which one is better in cont开发者_开发知识库extual binding? 2) With Ninject, I can bind to types in a specific namespace:
In Ninject 1.0 I had following binding definitions: Bind<ITarget>().To<Target1>().Only(When.Context.Variable(\"variable\").EqualTo(true));
I want to use conditional binding in ninject, based on passed parameters. I have something like below: