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
Silverlight TV Episode 5: Using Metadata with MEF
Feb 03, 2010 at 1:25 PMHi
The reason we didnt do this is because it's easy to get caught on complicated situations. What would happen if you want to build an expression (X) AND (Y) OR (W)? What's the semantic when more than one attribute is present (OR or AND)? and this kind of things. Hence imperative code would be prefered.
Thanks for the feedback
Silverlight TV Episode 4: 3 Steps to MEF - Export, Import, Compose
Jan 29, 2010 at 6:09 PMFiguerres, what I've shown is the basic of importing/exporting applied to Silverlight scenarios. It may be confusing if you are not buying into *why* MEF is great technology.
The case in point is MEF is all about extensibility. With this goal it encourages a design that enables reuse and isolation. This way you can reuse your "parts" across projects and save time. By encouraging a design that depends more on aggregates we encourage the Composition over Inheritance design principle, which opens door to customizations through extension points.
That said, there's no shortcut to understand the why. You need to feel the pain of your existing development model and see how MEF helps with that.
Silverlight TV Episode 4: 3 Steps to MEF - Export, Import, Compose
Jan 28, 2010 at 10:21 AM> For example how do I know that the send mail interface maps to the smtp send mail class and not another class that implements the same interface?
Actually you don't. And that's the beauty of it. Unless you need an implementation of a contract that "expose some special capabilities", which you can do with metadata and I'll show on the next show.