Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Injecting MVC with MEF 2 in 2 Minutes

Download

Right click “Save as…”

If you've wondered how to make sense of the alphabet soup and options available for Dependency Injection and Inversion of Control (DI/IoC) as well as how the Managed Extensibility Framework (MEF) can help you solve these problems, check out this screencast. In two minutes, you'll have a fully functioning DI/IoC-driven MVC site using MEF 2.0.

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. The Microsoft.MEF.CompositionProvider NuGet package put forth by the MEF team makes MEF an irresistible DI/IoC option for MVC developers.

Let Brady Gaster show you how to inject your MVC site using Visual Studio 11 and MEF 2.0 and quickly have more SOLID code.

Tags:

Follow the Discussion

Remove this comment

Remove this thread

close

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.