Posts

Showing posts from July, 2010

Load and Deploy XAP into Silverlight Application through MEF Deployment Catalog

Image
What a sunny day today, and it feels brighter when everything comes into place together. Fortunately, this is also the case for MEF (Managed Extensibility Framework). At first I could not really be bothered with learning this stuff, however I found out that this framework is what I will be needing most for my project! Why? because MEF has the ability to join every piece of functionality together! Managed Extensibility Framework It basically contains three steps that you need to implement: Export : this can be any class, interface, or objects that you want to export. Import : This is the place where you can get the exported pieces and do stuff with them. Composition : Imagine this as a connector between export and import. It basically compose any/all parts that you specify in export and make them available for the import. In MEF, a piece of functionality is described as a catalog. The new deployment catalog (which I'm going to be using) is very flexible in terms of adding