Top "Ninject" questions

NInject is a dependency injection framework for .NET applications.

Ninject-ing a dependency in Global.asax

I'm starting a web application with MVC3 and Ninject. There is one dependency that I also need in the Global.…

asp.net-mvc asp.net-mvc-3 ninject ninject-extensions
Ninject and MVC3: Dependency injection to action filters

I've found loads of inconclusive articles and questions on how to do property injection on an ActionFilter in ASP.NET …

c# asp.net-mvc-3 ninject webactivator
Validation: How to inject A Model State wrapper with Ninject?

I was looking at this tutorial http://asp-umb.neudesic.com/mvc/tutorials/validating-with-a-service-layer--cs on how to wrap my validation data …

c# asp.net-mvc-2 ioc-container ninject modelstate
How do I use Common Service Locator in Ninject 2

Changes in Ninject 2 say that Ninject support Common Service Locator, but how do I use it? I don't find any …

dependency-injection inversion-of-control ninject ninject-2 common-service-locator
NInject: Where do you keep your reference to the Kernel?

I'm using NInject on a new web application and there are two things that are unclear to me: Don't I …

c# dependency-injection inversion-of-control ioc-container ninject
Ninject MVC3 - bootstrapper throwing "Already Initialized" exception

I've created an empty Asp.Net MVC3 project, and used nuget install-package Ninject.MVC3 Without doing anything else (no services …

c# .net asp.net-mvc-3 ninject
Is there a simple way to use Dependency Injection on my connections?

I'm looking for a way to inject my connections into my repositories. I tried to inject the SqlConnection using the …

c# asp.net ninject
Where should I do Injection with Ninject 2+ (and how do I arrange my Modules?)

I have a solution with two relevant (to this question) projects, and a few others; Class library with functionality used …

asp.net-mvc inversion-of-control ninject
Parameterless constructor error with Ninject bindings in .NET Web Api 2.1

Working currently on writing an API site (.NET Web Api 2.1) For our prior API sites we had used the Ninject.…

c# .net asp.net-web-api ninject
HttpContext.Current null inside async task

I have a method that uses a repository (userRepo): public override Task<IdentityResult> CreateLocalUserAsync(IUser user, string password, …

c# ninject async-await httpcontext