How do I communicate client-server applications in C #? [closed]

1

I have the following project that seeks to organize and control the flow of attention in a waiting room.

The cycle begins when a patient arrives at the institution, takes turns in application A and that shift is saved on the server. From application B, I can see and work with the information that was previously generated and call those shifts to the input table through a visualizer that is on an external PC.

My question is how can I make that information that I am manipulating be sent directly to that viewer?

Attached photo of the model.

The application that issues the turns is made in Windows Forms with C #, just like the client applications.

    
asked by Gustavo Alexis 18.12.2018 в 22:19
source

1 answer

0

The simplest thing would be using a database, either Sql Server or the one you like most

If I would recommend you not connect the applications directly to the db, but expose servicios web WebApi with asp.net mvc , then the applications consume the functionality that the service provides, so you centralize the registration logic and how the clients take the data

The app that generates the ticket or the clients read the data of this service, the viewer also

If you need the clients you serve to receive notification, use SignalR

Using SignalR in WinForms and WPF

but you can put a button so that the person decides when to take the next, I say thinking that the person who attends is human and may need to take a break and does not want to take the next ticket that should fall automatically

The viewer will only see how the attention progresses if you can implement SignalR , where the server makes a push server sending the notification that there is a new ticket and must update the data on the screen

But in general, what you propose is correct, only that the server exposes the service so you can implement SignalR

    
answered by 19.12.2018 в 12:20