Awarious OfficePortal - HRMS Application

How to send message from server to client using WCF Services?

0 votes
asked Jul 21, 2013 in WCF by Sruthi

I am working on a project where the organization is using dashboard functionalities to see the statistics. To get the data for that dashboard, they are calling a service frequently with some particular time interval. I think that is not a correct approach, because there should be a way to send information from server to client when the new information is available. So, is there a way in WCF Services to send message from service to client instead of client request information from Service?


1 Answer

0 votes
answered Aug 5, 2016 by roykfahey (54 points)

In order to do that, you need to create and mantain a list of all connected clients (the general practice to fo this is creating LogIn and LogOut methods to create and manage a list of object representing your clients incuding their CallbackContext). Then, with a System.Time.Timers, you can loop through the connected client list and send the notification.

Your answer


Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
site design / logo / content © 2013 - 2019