Sunday, 25 March 2012

Injecting MVC with MEF (Managed Extensibility Framework )


2 Min Video - http://channel9.msdn.com/posts/Injecting-MVC-with-MEF-2-in-2-Minutes



In this video, you'll see how you can get MEF running in an ASP.NET MVC site and how to successfully decouple the controller layer from the service infrastructure and allow for reuse of the service layer across multiple controllers. TheMicrosoft.MEF.CompositionProvider NuGet package put forth by the MEF team makes MEF an irresistible DI/IoC option for MVC developers.



Welcome to the MEF Community Site

Important: this site hosts source code for unsupported, pre-release versions of MEF. If you want to use MEF in production, you should strongly consider using the supported versions included in the .NET Frameworkand Silverlight.

What is it?

The Managed Extensibility Framework (MEF) is a composition layer for .NET that improves the flexibility, maintainability and testability of large applications. MEF can be used for third-party plugin extensibility, or it can bring the benefits of a loosely-coupled plugin-like architecture to regular applications.

Status

MEF is a part of the Microsoft .NET Framework, with types primarily under theSystem.ComponentModel.Composition.* namespaces.
  • MEF has shipped with .NET 4.0 and Silverlight 4
  • MEF 2 is under development
Extracted from - http://mef.codeplex.com/

No comments:

Post a Comment