<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>.NET 4.0 on naveen srinivasan</title><link>https://naveensrinivasan.com/categories/.net-4.0/</link><description>Recent content in .NET 4.0 on naveen srinivasan</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 03 Nov 2010 01:56:34 +0000</lastBuildDate><atom:link href="https://naveensrinivasan.com/categories/.net-4.0/index.xml" rel="self" type="application/rss+xml"/><item><title>Downloading PDC10 videos using the new async feature</title><link>https://naveensrinivasan.com/?p=1156/</link><pubDate>Wed, 03 Nov 2010 01:56:34 +0000</pubDate><guid>https://naveensrinivasan.com/?p=1156/</guid><description>&lt;p&gt;I knew PDC10 has an OData endpoint which is &lt;a href="http://odata.microsoftpdc.com/ODataSchedule.svc/"&gt;http://odata.microsoftpdc.com/ODataSchedule.svc/&lt;/a&gt; . The best part about  OData is querying for specific data that we are looking for. And here is my OData url for filtering twitter hashtag #languages&lt;/p&gt;&#10;&lt;p&gt;[sourcecode]&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="http://odata.microsoftpdc.com/ODataSchedule.svc/Sessions%28%29?$filter=startswith%28TwitterHashtag,&amp;amp;#8217;%23languages&amp;amp;%238217;%29&amp;amp;$expand=DownloadableContent&amp;amp;$select=DownloadableContent"&gt;http://odata.microsoftpdc.com/ODataSchedule.svc/Sessions()?$filter=startswith(TwitterHashtag,&amp;#8217;%23languages&amp;#8217;)&amp;$expand=DownloadableContent&amp;$select=DownloadableContent&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;[/sourcecode]&lt;/p&gt;&#10;&lt;p&gt;With the above OData feed I could get urls for low bandwidth mp4’s that I can download. And here is the sample code for filtering&lt;/p&gt;&#10;&lt;p&gt;[sourcecode language=”csharp”]&lt;/p&gt;&#10;&lt;p&gt;var x =XDocument.Load(@&amp;ldquo;c:tempsession.xml&amp;rdquo;).Descendants().AsParallel().Where(xd =&amp;gt; xd.Name.LocalName==&amp;ldquo;Url&amp;rdquo;&lt;/p&gt;</description></item></channel></rss>