Top "Ninject" questions

NInject is a dependency injection framework for .NET applications.

Issue using ASP.Net MVC 4 Web API with Ninject.Web.WebApi

I'm trying to use the new ASP.Net MVC 4 Web API project template with Ninject but have hit a wall …

c# ninject asp.net-mvc-4 asp.net-web-api
IoC (Ninject) and Factories

If I have the following code: public class RobotNavigationService : IRobotNavigationService { public RobotNavigationService(IRobotFactory robotFactory) { //... } } public class RobotFactory : IRobotFactory { public IRobot …

c# .net inversion-of-control ninject ioc-container
How to use Ninject in WPF application

I'm familiar with MVC but I'm trying to learn WPF with Ninject. Can some one give me some example or …

wpf ninject
Using Ninject to fill Log4Net Dependency

I use Ninject as a DI Container in my application. In order to loosely couple to my logging library, I …

c# log4net ninject
Ninject: Registering an already created instance with Ninject?

Can anyone tell me if i can register an already created instance of a class with Ninject so that it …

dependency-injection ninject ninject-2
Ninject.ActivationException thrown only on first web request (WebAPI 2, OWIN 3, Ninject 3)

I am attempting to create a "barebones" Web API project that uses OWIN middleware, Ninject Depencency Injection, and ultimately to …

asp.net-web-api ninject owin
Ninject - binding constructors with arguments / Entity Framework connection string

Please forgive my ignorance, but I am very new to IOC and NinJect. I have searched for high and low …

asp.net-mvc ioc-container ninject
Get an instance of an object with Ninject

I installed on my project Ninject.MVC3 via Nuget. I read this article that to inject dependencies in my controllers, …

asp.net-mvc-3 dependency-injection ninject
How do I NOT use DependencyResolver.Current.GetService(...) in this situation

Following the advice I have been given in this thread [Ninject UOW pattern, new ConnectionString after user is authenticated I …

c# dependency-injection ninject anti-patterns service-locator
NInject: how to pass parameters when Get<T>()?

I'm using the attached image to explain what I meant. I have a few classes managed by NInject. Some of …

ninject