Top "Ninject" questions

NInject is a dependency injection framework for .NET applications.

How do the major C# DI/IoC frameworks compare?

At the risk of stepping into holy war territory, What are the strengths and weaknesses of these popular DI/IoC …

c# dependency-injection unity-container ioc-container ninject
Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0' or one of its dependencies

I am adding Ninject in MVC project using the following commands in Package Manager Console: Install-Package Ninject -version 3.0.1.10 Install-Package Ninject.…

c# asp.net-mvc ninject
Creating an instance using Ninject with additional parameters in the constructor

I decided to start using Ninject and face an issue. Say I have the following scenario. I have an IService …

c# ioc-container ninject
MVC5, Web API 2 and Ninject

I have created a new MVC5 project with Web API 2, I then added the Ninject.MVC3 package from NuGet. Constructor …

asp.net-web-api ninject asp.net-mvc-5
Ninject vs Unity for DI

We are using ASP.net MVC. Which of these is the best DI framework Ninject or Unity and why?

asp.net-mvc ninject unity-container
How to use DI container when OwinStartup

It's a Web API 2 project. When I implement DI using Ninject, I got an error message An error occurred when …

c# asp.net-web-api dependency-injection ninject owin
Configuring Ninject with Asp.Net MVC & Web Api

i have setup my project with Ninject IoC. My project has regular Asp.Net MVC controllers and Web Api controllers. …

asp.net asp.net-mvc dependency-injection ninject repository-pattern
Using HttpContext.Current in WebApi is dangerous because of async

My question is a bit related to this: WebApi equivalent for HttpContext.Items with Dependency Injection. We want to inject …

multithreading asynchronous asp.net-web-api ninject httpcontext
What is Ninject and when do you use it?

I have been helping a few friends on a project and there is a class that uses Ninject. I am …

c# dependency-injection ninject