Welcome to MSDN Blogs Sign in | Join | Help

MEF and ASP.NET MVC sample updated

Sample updated to Preview 6. I've also took the time to simplify the MvcCatalog and to hard set the Creation Policy to Non Shared for all controllers.


Have fun! 

Published Wednesday, July 15, 2009 11:37 AM by hammett

Attachment(s): MvcWithMEF.zip

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: MEF and ASP.NET MVC sample updated

Tuesday, August 04, 2009 6:39 AM by Juliën

Excellent! Was looking for a sample that worked around the (now) obsolete metadata in the GetExports function (CreateController).

# re: MEF and ASP.NET MVC sample updated

Wednesday, November 18, 2009 9:59 PM by Tom

Thank you for the article and sample code.  I'm feeling my way through it.  I noticed the views in your Extensions class are not strongly typed.  Instead, you are populating ViewData dictionary using magic strings:

ViewData["forums"] = _forumService.GetEnabledForumsRecentActivity();

Can we use strongly types views in the Extension classes?  I hates using magic strings and dictionaries I do.  Anyways, thanks for your efforts.

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker