O'Reilly logo

Microsoft Silverlight 5 Data and Services Cookbook by Kevin Dockx, Gill Cleeren

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using duplex communication with the WCF net.tcp binding

Applies to Silverlight 4 and 5

So far, we have looked at two technologies that allow us to perform duplex communications. In Chapter 7, Working with Services, we looked at how we could set this up using TCP sockets communication. The biggest advantage of using sockets is their speed. The second option is duplex WCF services, which is the focus of the previous recipe. Being WCF services, the programming model is much simpler. Based on contracts, we get typed access to the objects with which we're working. However, they rely on HTTP for their communication, resulting in slower speeds.

With Silverlight 4, a new option was added which brings the best of both worlds—WCF net.tcp binding. We can ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required