Summary

Windows Forms application supports all DI patterns, because it offers a single startup location in the Main method and gives us the freedom of instantiating all classes ourselves. WPF and Silverlight applications are friendly to MVVM pattern, and they support all DI patterns as well. ASP.NET MVC is a DI-friendly framework, and although the creation of framework components (for example, Controllers) are up to the framework factories, it allows to replace them with Ninject factories which support injectable components. Ninject.Web.MVC extension contains ASP.NET MVC injection facilities of Ninject. WCF is the other web platform which supports all DI patterns because of its high extensibility and configurability. It can be configured to use ...

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.