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 ...

Get Mastering Ninject for Dependency Injection now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.