Click to Rate and Give Feedback
MSDN
MSDN Library

  Switch on low bandwidth view
Building and Accessing Duplex Services

Duplex communication allows either party to initiate a message exchange. But Silverlight version 2 clients are not addressable because the browser environment does not allow the creation of a listener. So a traditional duplex solution implemented by Windows Communication Foundation (WCF) for TCP, for example, which requires listening at an address, is not available. Duplex communication with a Silverlight 2 client is achieved by having the client poll a destination server for messages within an established session over HTTP. This is useful in scenarios where data must be pushed to a Silverlight client when it is updated on the server.

In addition to HTTP, two protocols are used by the Silverlight 2 polling duplex feature. The Net Duplex Protocol is implemented to establish the client session with a server and WS-Make Connection (WS-MC) is used to establish a back channel using polling so that server-initiated messages can be delivered to the client.

This section contains procedures on how to build a Silverlight-enabled duplex service and how to use the channel programming model with Silverlight to access this service.

In This Section

How to: Build a Duplex Service
Describes how to create a Silverlight-enabled Windows Communication Foundation (WCF) duplex service that can communicate with a Silverlight client using the polling duplex message pattern.

How to: Access a Duplex Service with the Channel Model
Describes how to create a Silverlight client that can communicate with a WCF service using the polling duplex message pattern.

Reference

See Also

Send comments about this topic to Microsoft.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker