O'Reilly logo

Mastering Ninject for Dependency Injection by Daniel Baharestani

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

WCF applications

In this section, we will implement the Northwind customers scenario using Windows Communication Foundation (WCF). WCF is a highly customizable and extensible framework, and it is possible to configure it to use Ninject service host factories to enable hosting of injectable services. Ninject WCF extensions include all the necessary components.

Now, add a new WCF service application to the Northwind solution, and reference Northwind.Core project. We also need to add reference to the Ninject.Extensions.WCF, Ninject.Web.Common, and Ninject libraries. We can do it either via NuGet, or we can download the binaries from the Ninject page on GitHub. Adding binary references manually requires some manipulations of the Global.asax file ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required