Top "Ninject" questions

NInject is a dependency injection framework for .NET applications.

MVC 3 Dependency Resolver or Ninject MVC plugin?

In MVC 3 they added a Dependency Resolver what I been using. While answering someone question someone commented on you should …

asp.net-mvc asp.net-mvc-3 ninject ninject-2
Ninject syntax for "Bind" with multiple arguments

How I can use multiple parameters in Ninject syntax like following? Bind<IMyRepository>() .To<SqlMyRepository>() .WithConstructorArgument("…

c# asp.net-mvc ninject
Inject dependency into DelegatingHandler

I am new to dependency injection, but happy with Ninject and Ninject.Extensions.Logging to [Inject] my ILogger wherever i …

c# dependency-injection asp.net-web-api ninject ninject.web.mvc
How can Json.NET perform dependency injection during deserialization?

When I have a class with no default constructor, i.e. using dependency injection to pass its dependencies, can Newtonsoft.…

c# json dependency-injection json.net ninject
What's the difference between .ToConstructor and .ToMethod in Ninject 3?

In Ninject3 there's a new .ToConstructor feature. As described, it helps to strongly-type constructor arguments like: Bind<IMyService>().…

c# ninject
Ninject Dependency Injection with Asp.Net MVC3 or MVC4

I am using Ninject MVC3(version 3.0.0.0) for my ASP.Net MVC3 application installed using NuGet Package for Dependency Injection. Here …

asp.net-mvc-3 dependency-injection ninject asp.net-mvc-4 ninject.web.mvc
WCF / Ninject / Default (parameter-less) constructor

I'm trying to add Ninject to a WCF service using the WCF Ninject extension. I'm getting the error: The service …

c# wcf ninject ninject-extensions
Ninject default contextual binding

I have an interface with a few different concrete implementations. I am trying to give Ninject a default to use …

c# ninject
Unit Testing with Ninject in MVC 4

I have a solution called MvcContacts with an MVC 4 project named MvcContacts and a unit testing project named MvcContacts.Test (…

c# unit-testing asp.net-mvc-4 ninject ninject.web.mvc
How to use Ninject in a Windows Forms application?

I have an WinForms application with this Main Form : ICountRepository countRepository; public MainForm(ICountRepository countRepository) { this.countRepository = countRepository; } public void …

c# .net winforms ninject windows-forms-designer