开发者

update list in application when service works

开发者 https://www.devze.com 2023-01-13 19:23 出处:网络
So i have a service that creates letters and puts them in a database (sql-server). I also have an application (c#,wpf) where there\'s a list with letters(from the database)

So i have a service that creates letters and puts them in a database (sql-server). I also have an application (c#,wpf) where there's a list with letters(from the database)

How can i trigg开发者_运维问答er an event in the application if a new letter is made? (so that the list should be updated)

Anyone who knows how to do this?

Thanks


I would suggest looking into WCF.

The Introductory Videos are really helpfull, and you will need some sort of communication between the 2 applications.

I would suggest the letting the service allow client to subscribe to letter changes, and the server service(the one that puts letts in) to notify the clients about change of letters so the clients can refresh.

0

精彩评论

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