Posted By: keydet | Apr 11th, 2008 @ 1:40 PM | 4,595 Views | 6 Comments
Marc Schweigert shows you how easy it is to expose RSS and Atom feeds using the new Web Programming Model (REST) features, classes in the new System.ServiceModel.Syndication namespace, and LINQ to SQL in the .NET Framework 3.5.  Then, you will see how you can use classes from the System.ServiceModel.Syndication namespace to consume RSS and Atom feeds using Silverlight 2.

Source code for this screencast is available here.
Media Downloads:
Rating:
0
0
Thanks for the screencast, it's always nice to see an end-to-end example. The new WCF 3.5 features look great.

Having said that...

var request = new WebClient();

?? Way to promote terrible programming practices.
The var keyword was invented in order to support dynamic types, not to replace the declaration of every local variable.

The reason I dislike it is because I believe it promotes laziness and needlessly obfuscates the code. The difference between var request = new WebClient(); and WebClient request = new WebClient(); is negligable, so why not declare it properly?

Take these examples:

var provider = providerFactory.Create();
var customer = base.CreateCustomer();

As a developer seeing this code for the first time, what type is provider/customer? The only way of knowing is by looking up the declaration of Create/CreateCustomer. For the sake of a few keystrokes, you have made the code considerably harder to maintain.

Additionally, the general argument for var seems to be that the compiler and VS intellisense will inferring the type for you, but that doesn't help me if I am viewing it outside devenv (eg. comparing two versions of a source file in subversion).
Hi, Could you possibly make another video on RSS please?? More details on Streaming Video and all that using RSS or WCF?? Thanks in advance

I need to create a custom RSS feed which would access a bunch of sales data from the database and consume from my silverlight 3 app.  I followed your video.  Everything works fine when I run from within the syndication library project. But when I try to consume the feed from silverlight app, it just doesn't seem to work. I get System.Security.SecurityException. So I placed the clientaccesspolicy xml at the silverlightapp.web project. Still doesn't seem to work. Do I need to host this syndication library on IIS? By default, it seems to be self hosted and I see that in your demo, you are hosting your feed on feedburner.  Do I need to create silverlight enabled WCF somehow? Also, I was wondering about the "Design_Time_Addresses" in the generated url - http://localhost:8731/Design_Time_Addresses/myLibrary/Feed1/ ?

 

Thanks in advance...

Microsoft Communities