Numerous C # WCF Clients

I made a WCF service that makes changes to a SQL database.

There is one client that has one list displaying data from this database.

In addition, the client application has one text box and one button. When the button is clicked, the string from the text box is added to the database and to the list.

But when I connect multiple clients, only the client who makes the change can see them in the list.

When I open another client again, this new line is added to the list.

How can I get these changes in all client lists in real time?

+3


source to share


1 answer


You will need to create a duplex communication contract so that the server can send messages to connected clients.



For example: A-Beginners-Guide-to-Duplex-WCF

+5


source







All Articles