Creating Dynamic Applications
Prior to MEF, the work required to create a so-called open-ended .NET application (that is, an application that allows others to contribute code and alter or add to its functionality) was far from a trivial effort. The main issue here is one of discovery and instantiation. The “host” application (the application that supports extensions) needs to have a standard way of identifying and validating code meant to extend the host. And there needs to be a runtime activation approach: how is the plug-in code executed, and what portions of the host app can be affected by the plug-in?
This is where MEF enters the scene. It provides an architecture pattern and framework/API that host application developers and plug-in developers ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access