C H A P T E R  4

Image

MEF 2 in 4.5

The first version of the Managed Extensibility Framework (MEF) was released as part of .NET 4 and with .NET 4.5 we see the release of MEF 2.0. The MEF team has added a number of new features that will be the focus of this chapter. These features include, but are not limited to, improved lifetime management, convention-based parts registration and, via NuGet, a new lightweight composition engine for web and Windows 8 apps.

In this chapter, we are going focus on providing an overview of each of the key new features in MEF with some simple examples of how they can be implemented. Before we discuss the new features, ...

Get Introducing .NET 4.5 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.