开发者

How to update datat in clients from WCF service after updating data on server?

开发者 https://www.devze.com 2023-02-03 17:02 出处:网络
When on开发者_运维百科e of clients changes some data on server I need to send a message from WCF service to all clients that makes them to download changed data. How can I make that?You are looking fo

When on开发者_运维百科e of clients changes some data on server I need to send a message from WCF service to all clients that makes them to download changed data. How can I make that?


You are looking for Publish-subscribe message exchange pattern where all client first have to register on the service (subscribe) when service receives new data it sends them to all other clients (publish).

WCF support this when using duplex communication - Net.Tcp or WSDualHttpBinding. You can check complex artice by Juval Lowy in MSDN magazine.

0

精彩评论

暂无评论...
验证码 换一张
取 消