Injecting MVC with MEF 2 in 2 Minutes

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span>If youve wondered how to make sense of the alphabet soup and options available for http://en.wikipedia.org/wiki/Dependency_injection" target="_blank Dependency Injection and http://en.wikipedia.org/wiki/Inversion_of_control" target="_blank Inversion of Control (DI/IoC) as well as how the http://mef.codeplex.com/" target="_blank Managed Extensibility Framework (MEF) can help you solve these problems, check out this screencast. In two minutes, youll have a fully functioning DI/IoC-driven MVC site using MEF 2.0. <span>In this video, youll 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. The http://nuget.org/packages/Microsoft.Mef.MvcCompositionProvider/1.0.1-alpha" target="_blank Microsoft.MEF.CompositionProvider NuGet package put forth by the MEF team makes MEF an irresistible DI/IoC option for MVC developers. <span>Let http://bradygaster.com" target="_blank Brady Gaster show you how to inject your MVC site using Visual Studio 11 and MEF 2.0 and quickly have more SOLID code. <img src="http://m.webtrends.com/dcs1wotjh10000w0irc493s0e_6x1g/njs.gif?dcssip=channel9.msdn.com&dcsuri=http://channel9.msdn.com/Feeds/RSS&WT.dl=0&WT.entryid=Entry:RSSView:a95ee43ea55c4a2b83afa01b005f0648

View the full article
 
Back
Top