Search code examples
wcfnamed-pipesinter-process-communicat

Need advices about pushing data from server to client application


I have been developing a physical security application which will run on security operators pc.

In server side i have a windows service collecting the alarms from third party systems like smoke sensors, access control in realtime. The server application logs the alarms into SQL database.

I need to push the alarms from server to client applications(security operators GUI) instantly. The question is :

Could you offer a technique to push the alarms to the client application's GUI instantly.

All the server and client are in .NET framework 3.5 and 4.0

I have been reading articles about named pipes,wcf and really confused.

any help will be appreciated.


Solution

  • You might use a Duplex Service Contract (a ServiceContract with a CallbackContract) in conjunction with a binding that supports such contracts, e.g. WSDualHttpBinding.

    Your client would implement the callback interface, which is called by the server whenever alarms are to be published.