MEF & Silverlight 4 Beta - Part 6, Locating Defaults & ExportProviders

Sign in to queue

The Discussion

  • User profile image

    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.

  • User profile image

    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.

  • User profile image

    @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.

  • User profile image

    Nice video. Any idea on putting some videos of using PRISM + MEF with MVVM ? I would really like to see on of those.

  • User profile image

    It's on my list of things to think about, yes Smiley



Add Your 2 Cents