MEF (Managed Extensibility Framework) vs IoC/DI

The principle purpose of MEF is extensibility; to serve as a ‘plug-in’ framework for when the author of the application and the author of the plug-in (extension) are different and have no particular knowledge of each other beyond a published interface (contract) library. Another problem space MEF addresses that’s different from the usual IoC suspects, … Read more

Where can I learn about MEF? [closed]

I haven’t found a really comprehensive page, but there are a few: Microsoft Docs Simple Example from a msdn blog Code Project’s Introduction to MEF (part 1) MEF 101 part A from Geek with Blogs MEF 101 part B Another MSDN blog, a little more history than tutorial

MEF vs. any IoC

When boiled down, the main difference is that IoC containers are generally most useful with static dependencies (known at compile-time), and MEF is generally most useful with dynamic dependencies (known only at run-time). As such, they are both composition engines, but the emphasis is very different for each pattern. Design decisions thus vary wildly, as … Read more

MEF with MVC 4 or 5 – Pluggable Architecture (2014)

I have worked on a project that had similar pluggable architecture like the one you described and it used the same technologies ASP.NET MVC and MEF. We had a host ASP.NET MVC application that handled the authentication, authorization and all requests. Our plugins(modules) were copied to a sub-folder of it. The plugins also were ASP.NET … Read more

tech