Reputation: 1126
I am currently developing a C# Windows Form Application that I intend to let it interact with a server. The server will receive posting from a mobile application that I have developed and whenever a posting is received, my Windows Form Application should be notified and give me a notification.
E.g. My mobile application sends an message over to my server. Once my server receives the message, my windows form application should display a new notification showing the content of the message received.
The above scenario is just a example of what I intend to do with the whole thing. Any idea how should I code my C# application in order to receive the information as stated above?
Upvotes: 4
Views: 285
Reputation: 9017
As an alternative to the answer @parapura rajkumar, you could also investigate a Message Queue architecture, where the messages posted back from the mobile app are visible to both the server and the Windows client.
Perhaps a little more heavy-weight but certainly worth consideration, especially if you suspect the application may need to grow in complexity in the future...
Upvotes: 0
Reputation: 24403
You can implement a WCF Service inside your server. You Windows Form application can be your WCF Service client.
What you probably want is a Duplex Service
They way this would work is
Upvotes: 5