I have 2 different concrete objects, lets save ConcreteOne and ConcreteTwo. Each of these implement an interface ILooseyGoosey. I would like ninject to call a different method depending on the attribu
I have set up a NInject (using version 1.5) binding like this: Bind<ISessionFactory>().ToMethod<ISessionFactory>(ctx =>
In Ninject 1.0 I had following binding definitions: Bind<ITarget>().To<Target1>().Only(When.Context.Variable(\"variable\").EqualTo(true));
We are using the beloved Ninject+Ninject.Web.Mvc with MVC 2 and are running into some problems.Specifically dealing with 404 errors.We have a logging service that logs 500 errors and records them.Ever
I\'m evaluating ninject2 but can\'t seem to figure out how to do lazy loading other than through the kernel.
Getting going now with NInject...:) For a WinForms application, and in parti开发者_运维问答cular the business logic classes used within it, is there a rule of thumb in terms of which Classes once sho
In middle of applic开发者_JAVA技巧ation when calling following line: var component = _Kernel.Get<IComponent>();
I want to use conditional binding in ninject, based on passed parameters. I have something like below:
Can you use Ni开发者_高级运维nject 2.0 with VS2010 RC1?I had similar issue... try targetting the full .NET 4 Framework, not the Client Profile.
I\'m using MEF with ASP.NET MVC as demonstrated at http://blog.maartenballiauw.be/post/2009/06/17/Revised-ASPNET-MVC-and-the-Managed-Extensibility-Framework-(MEF).aspx.