23 Apr 2008

Got Duplex? (Silverlight 2 and WCF Duplex Communications)

     

image Eugene Osovetsky made a pretty exciting announcement yesterday regarding pushing data to Silverlight in Beta 2.

Beta 2 will likely include a new WCF capability for duplex services based on DuplexReceiver<T>. IMHO, this helps eliminate socket coding for some of the more common scenarios:

  • Chat applications
  • Data update notifications in biz apps

There will be both a client (Silverlight) and a server (WCF) component to this. In the spirit of keeping Silverlight's core platform agnostic, the client-side piece will be shipped as an extension assembly that you can include in your application as needed.

Having gone the socket route for a chat application demo I wrote (screenshot above), this is a very welcome addition. I was never proud of the sockets mush I put together in that (which is why the source is by-request only, I don't think it was a good pattern to follow), and would be happy to convert it to this new pattern.

Keep in mind this is all pre-release information and may or may not reflect what finally shows up in Beta 2 or RTW.

More information on Eugene's blog here.

Share |
posted by Pete Brown on Wednesday, April 23, 2008
filed under:      

5 comments for “Got Duplex? (Silverlight 2 and WCF Duplex Communications)”

  1. Bill Reisssays:
    It's also great news for casual multiplayer games, where you might not need the efficiencies of raw sockets and can get away with duplex.
  2. Karl Shifflettsays:
    Pete,

    Thanks for this information, this is great news.

    Cheers,

    Karl
  3. paulsays:
    That would be great that have.
  4. Peter Brombergsays:
    Nice work, Pete! Keep posting!
  5. Nicosays:
    Thanks for the news

Comment on this Post

Remember me

2 trackbacks for “Got Duplex? (Silverlight 2 and WCF Duplex Communications)”

  1. Community Blogssays:
    Eric Hexter is blogging about testing SL, TeamLive is using SL, Ola Karlsson on Semi-transparent SL,
  2. POKE 53280,0: Pete Brown's Blogsays:
    I'm doing a MSDN GeekSpeak next week on Connecting Silverlight and wanted to make sure I had another