How should I synchronize lists in WCF?
Posted
by mafutrct
on Stack Overflow
See other posts from Stack Overflow
or by mafutrct
Published on 2010-04-25T14:01:16Z
Indexed on
2010/04/25
14:03 UTC
Read the original article
Hit count: 182
I've got a WCF service that offers multiple lists of items of different types. The lists can be changed on the server. Every change has to be published to all clients to make sure every client has an up-to-date copy of each server list.
Currently I'm using this strategy: On login, every client receives the current status of every list. On every change, the added or removed item is sent to all clients.
The drawback is that I have to create a callback for every list, since the items are of different types. Is there a pattern I could apply? Or do I really have to duplicate code for each of the lists?
© Stack Overflow or respective owner