How can you instantiate a Controller that has an int argument? Using Ninject.. My HomeController has a constructor like this:
Well, I don\'t know if \"strong naming\" is the right term, but what I want to do is as follows. Currently I use ConstructorArgument like e.g. this:
We\'ve begun using Dependency Injection recently, and we\'ve chosen Ninject 2 (for now) as our IoC Container.As I refactor our solution to incorporate DI principles, I\'ve run into something that bugs
I want to use Ninject to use in a non MVC ASP.NET 3.5 web application. Can someone write please what do I need to download from ninject home site and what steps I need to take (what ddls I need to re
Is anyone out there using the Prism framework with Ninject instead of Unity? I need some functionality Unity isn\'t supporting yet, and I\'ve decided to switch the IoC container to Ninject. I\'m strug
Given the class Ninja, with a specified binding in the Ninject kernel I can resolve an object doing this:
Note: Now that I\'ve typed this out, I have to apologize for the super long question, however, I think all the code and information presented here is in some way relevant.
My case it is Ninject 2. // normal explicit dispose using (var dc = new EFContext) { } But sometimes I need to keep the context longer or between function calls.
I\'m using Ninject 2.0 for the .Net 3.5 framework. I\'m having difficulty with singleton binding. I have a class UserInputReader which implements IInputReader. I only want one instance of this class
I have a class with a public constructor: public MasterEngine(IInputReader inputReader) { this.inputReader = inputReader;