MEF & Silverlight 4 Beta - Part 6, Locating Defaults & ExportProviders
- Posted: Dec 31, 2009 at 2:28 AM
- 12,532 Views
- 5 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Part 6 of a series of screencasts looking at the new Managed Extensibility Framework (MEF) in the Silverlight 4 beta.
MEF is a framework that simplifies the design of extensible applications and components. It can flexibly and dynamically discover a set of loosely coupled components and analyse their dependencies in order to compose them together at run time.
In this screencast we take a look at how we can provide defaults in a CompositionContainer such that an application can be sure that it has an implementation of a plug-in if no additional plug-in is discovered by MEF. This leads to a discussion about
ExportProviders and how they provide an extensibility point for MEF.
Tips for viewing:
I'm working to get together a Live Meeting in early 2010 with people from the MEF team in order that people can chat more about MEF in Silverlight. Stay tuned.
The next screencast in this series is ( not yet available ). "That's all folks!" but subscribe to the feed above for notifications when more come online...
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.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
Nice video. I'm still a bit fuzzy on why it's necessary to set "CatalogExportProvider.SourceProvider" and what it should point to though.
I couldn't find any real use of this property during a quick look at the MEF source, except that exceptions are thrown if it is not set. The root "System.ComponentModel.Composition.Hosting.ExportProvider" abstract class doesn't even have this property.
Great job with this video series Mike ... I like this format of doing a series of videos each one building on the next. THANKS, I've definitely learned a lot.
@wcoenen source provider is what allows a catalog to talk back to the rest of the world to satify it's imports. It is not part of ExportProvider because not all EPs need to do that loop back. CatalogExportProvider queries back through the source provider property. For example imagine the container had an ILogger instance directly added to it, and the catalog had an OrderProcessor part which imports it. In order for that part to be created, the catalog needs to grab the ILogger which it gets through the source provider.
Nice video. Any idea on putting some videos of using PRISM + MEF with MVVM ? I would really like to see on of those.
It's on my list of things to think about, yes
Mike.
Remove this comment
Remove this thread
close