Contents tagged with Mef

  • Unity/EntLib interceptors in MEF

    By Augustin Šulc

    In one of our applications, we use MEF for discovery of component exports. To make it more complicated, we also wanted to use Enterprise Library interceptors for advanced logging, error handling and caching (from Policy Injection Application Block) so we needed to use Unity as well. MEFContrib was a great helper for us so we were able to use (in simplified words) MEF for exports and Unity for imports. Although there were some problems it worked. With the new version of MEFContrib, things became … more

  • Coproject - a RIA Caliburn.Micro demo, part 5

    by Augustin Šulc

    In this part, we will add some module metadata. Note that you can get the most recent Coproject source codes from its Codeplex site. Metadata As you probably noticed, modules are not loaded into shell in any specified order. And since we don’t want the modules be in arbitrary order, we need to add some metadata. You can read more about MEF metadata here. The easiest way is to use ExportMetadataAttribute. We would update HomeViewModel as: [Export(typeof(IModule))] [ExportMetadata("Order", … more