开发者

.NET: Send a text message to all instances of the same application and read it

开发者 https://www.devze.com 2023-01-09 08:15 出处:网络
I need abil开发者_开发问答ity to reliably sync some chunks of textual data between all running instances of my application. What\'s the best way to make it?Generally speaking you need the Observer Pat

I need abil开发者_开发问答ity to reliably sync some chunks of textual data between all running instances of my application. What's the best way to make it?


Generally speaking you need the Observer Pattern. You need something to act as a server. After that it depends whether if a change happened at some application should notify the observer or the observer should request change summary from every client (at some intervals), merge it and return it to the clients. It is too complex to answer with such minimum information you provided.

0

精彩评论

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

关注公众号