You need to establish create
full-duplex communication with the service, to receive
push notification (updates) from the service. For that purpose, the service should have appropriate
client-layer protocol. It looks like you need to implement publisher-subscriber model: first, your client application sends request to the service, and the service replies. To subscribe, the client part sends appropriate command to the service, with connection information; the service connects to client part (this particular client) and start sending notifications as new data is ready. Please see:
Duplex (telecommunications) — Wikipedia, the free encyclopedia[
^],
Application layer — Wikipedia, the free encyclopedia[
^],
Push technology — Wikipedia, the free encyclopedia[
^],
see also my past answer:
Application 'dashboard' for website accounts[
^].
You can implement it on different levels, from raw sockets to WCF.
See also:
Duplex Services[
^].
These CodeProject article can be useful:
WCF Implementation of the Publisher/Subscriber Model[
^],
Duplex Service in WCF[
^],
A Beginner's Guide to Duplex WCF[
^].
—SA