Chapter 15. MEF

Menu

  • Introducing MEF
  • Managing lifetime
  • Working with multiple components
  • Configuring difficult APIs

In the previous five chapters, you saw how various DI Containers can be used as tools to implement the patterns and practices laid out in the rest of the book. In this chapter, we’re going to do something slightly different, because the Managed Extensibility Framework (MEF) isn’t really a DI Container.

As its name implies, MEF is a framework that addresses extensibility concerns for applications. The focus is on enabling add-in scenarios for standard software. Visual Studio 2010 is probably the first and most prominent application that uses MEF to support plug-ins, but any application built on .NET 4 or Silverlight 4 can use it ...

Get Dependency Injection in .NET 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.