<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - Silverlight TV Episode 5: Using Metadata with MEF</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF/RSS"></atom:link>
	<image>
		<url>http://ecn.channel9.msdn.com/o9/previewImages/100/523691_100x75.jpg</url>
		<title>Channel 9 - Silverlight TV Episode 5: Using Metadata with MEF</title>
		<link></link>
	</image>
	<description>Hamilton Verissimo, Program Manager working on MEF, makes a return visit to Silverlight TV to follow up his discussion of MEF.&amp;nbsp;This time Hamilton discusses&amp;nbsp;different ways metadata can be used with MEF and suggests some pros and cons for each. As usual,
 he dives right into the code samples and gives some great guidance on MEF.

Follow 
@SilverlightTV on Twitter for the latest updates. 
</description>
	<link></link>
	<language>en</language>
	<pubDate>Thu, 20 Jun 2013 08:10:13 GMT</pubDate>
	<lastBuildDate>Thu, 20 Jun 2013 08:10:13 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<item>
		<title>Re: Silverlight TV Episode 5: Using Metadata with MEF</title>
		<description>
			<![CDATA[
<p>Very helpful distillation of the stages of declaring and consuming Export MetaData. &nbsp;Thanks!</p>
<p>As a quick-start reference, any chance your could post those 4 sample cs files?</p>
<p>&nbsp;</p>
<p>Gracias!</p>
<p>posted by philcockfield</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634005743070000000</link>
		<pubDate>Sun, 31 Jan 2010 22:38:27 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634005743070000000</guid>
		<dc:creator>philcockfield</dc:creator>
	</item>
	<item>
		<title>Re: Silverlight TV Episode 5: Using Metadata with MEF</title>
		<description>
			<![CDATA[
<p>I have to watch this video because the guy on the left looks like Dwight Shrute.</p>
<p>posted by justncase80</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634006450680000000</link>
		<pubDate>Mon, 01 Feb 2010 18:17:48 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634006450680000000</guid>
		<dc:creator>justncase80</dc:creator>
	</item>
	<item>
		<title>Re: Silverlight TV Episode 5: Using Metadata with MEF</title>
		<description>
			<![CDATA[
<p>Excellent work...&nbsp; MEF looks amazing...</p>
<p>posted by mgraham</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634006527100000000</link>
		<pubDate>Mon, 01 Feb 2010 20:25:10 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634006527100000000</guid>
		<dc:creator>mgraham</dc:creator>
	</item>
	<item>
		<title>Re: Silverlight TV Episode 5: Using Metadata with MEF</title>
		<description>
			<![CDATA[
<p>I love the pace of the videos and the walk throughs. I do enjoy screen casts, but some can be painful to watch because of their speed.</p>
<p>&nbsp;</p>
<p>I do have one request:</p>
<p>I reliase that I will get no sypathy for this, but I usually watch screen casts on full screen and I have a 27&quot; monitor, when doing this, the video of the visual studio screens is very poor. Can you not move to using Smooth Streaming and HD?</p>
<p>&nbsp;</p>
<p>Cheers</p>
<p>posted by Dewy</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634007320390000000</link>
		<pubDate>Tue, 02 Feb 2010 18:27:19 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634007320390000000</guid>
		<dc:creator>Dewy</dc:creator>
	</item>
	<item>
		<title>Re: Silverlight TV Episode 5: Using Metadata with MEF</title>
		<description>
			<![CDATA[
<p>Dewy - We (Channel 9) are working on some changes to help make the entire experience even better. Unfortunately this does not help you right now, but we are looking into some improvements.</p>
<p>&nbsp;</p>
<p>Thanks for watching!</p>
<p>posted by jopapa</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634007324790000000</link>
		<pubDate>Tue, 02 Feb 2010 18:34:39 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634007324790000000</guid>
		<dc:creator>jopapa</dc:creator>
	</item>
	<item>
		<title>Re: Silverlight TV Episode 5: Using Metadata with MEF</title>
		<description>
			<![CDATA[
<p>Why do you need to write any code at all to filter on metadata?&nbsp; Why not have an 'ImportMetadataAttribute' that causes MEF to do the filtering for me?&nbsp; The most common case is an 'equals' match against the metadata key/values, I would think there would be
 a simple way to do this without all this Lazy buisness..&nbsp; Something like this:<br>
<br>
[Import]<br>
[ImportMetadata(&quot;IsSecure&quot;, true)]<br>
public IEmailSender Sender {get; set; }</p>
<p>&nbsp;</p>
<p>or</p>
<p>&nbsp;</p>
<p>[ImportMany]<br>
[ImportMetadata(&quot;IsSecure&quot;, true)]<br>
public IEnumerable&lt;IEmailSender&gt; Senders {get; set; }</p>
<p><br>
It would also be nice to say 'I only want one, and I dont care which one' using an 'ImportAnyAttribute'.</p>
<p>posted by brandf</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634008134470000000</link>
		<pubDate>Wed, 03 Feb 2010 17:04:07 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634008134470000000</guid>
		<dc:creator>brandf</dc:creator>
	</item>
	<item>
		<title>Re: Silverlight TV Episode 5: Using Metadata with MEF</title>
		<description>
			<![CDATA[
<p>Hi</p>
<p>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. </p>
<p>&nbsp;</p>
<p>Thanks for the feedback</p>
<p>posted by haveriss</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634008291190000000</link>
		<pubDate>Wed, 03 Feb 2010 21:25:19 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634008291190000000</guid>
		<dc:creator>haveriss</dc:creator>
	</item>
	<item>
		<title>Re: Silverlight TV Episode 5: Using Metadata with MEF</title>
		<description>
			<![CDATA[
<p>I'm not suggesting you remove the imperative way to handle these more complicated cases.&nbsp; I just seems like overkill for what I would imagine is the common case.<br>
<br>
It would be intersting to look at how Export Metadata is used in VS 2010 as a case study for how common these more complicated cases are.&nbsp; My gut feeling is that equality comparison on a single piece of metadata (or AND'ed for multiple ImportMetadatas) is the
 common case.<br>
<br>
This would make it more pay-for-play...</p>
<p>posted by brandf</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634008528600000000</link>
		<pubDate>Thu, 04 Feb 2010 04:01:00 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634008528600000000</guid>
		<dc:creator>brandf</dc:creator>
	</item>
	<item>
		<title>Re: Silverlight TV Episode 5: Using Metadata with MEF</title>
		<description>
			<![CDATA[
<p>Hi Brandf</p>
<p><br>
Thanks for the feedback. We've been looking into ideas such as ImportMetadata for a while and are exploring several options. One alternative approach to having it on the import side is to have an adapter part which sits in the middle and provides the filtering
 the importer needs without requiring the importer to know. A different approach is to have a custom collection (which MEF supports) which does the adaptation. That you can do today, for example: <a href="http://codepaste.net/ktdgoh">http&#58;&#47;&#47;codepaste.net&#47;ktdgoh</a><br>
<br>
Regardless, we appreciate the feedback and are looking into better ways to handle this problem going forward.</p>
<p>&nbsp;</p>
<p>posted by gblock</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634019142850000000</link>
		<pubDate>Tue, 16 Feb 2010 10:51:25 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634019142850000000</guid>
		<dc:creator>gblock</dc:creator>
	</item>
	<item>
		<title>Re: Silverlight TV Episode 5: Using Metadata with MEF</title>
		<description>
			<![CDATA[
<p>Has the code for this episode been published anywhere?&nbsp; There seems to be some very good stuff that I'd like to get my hands on!</p>
<p>posted by mgbecker</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634021860540000000</link>
		<pubDate>Fri, 19 Feb 2010 14:20:54 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/SilverlightTV/Silverlight-TV-Episode-5-Using-Metadata-with-MEF#c634021860540000000</guid>
		<dc:creator>mgbecker</dc:creator>
	</item>
</channel>
</rss>