Home > Net >  The same procedure in MVC and winform server should how communication
The same procedure in MVC and winform server should how communication

Time:10-21

Idea is, 1, winform gathering of other data, for example, to collect hardware ID and state, then sent to the MVC,
2, page ordered to winform procedure, winform procedure for judgment, then make the corresponding action,
The legend of simple signal way, should how to do?
Tried WebApi, MVC application can be integrated inside WebApi, still no thoughts, however, still hope the great god refers to a way of thinking is very important

CodePudding user response:

Web MVC judgement is not directly to the data, why after winform

CodePudding user response:

reference 1st floor - a big pit reply:
web MVC judgement is not directly to the data, why after winform
wrong, the second is the MVC ordered to winform, then control the action of hardware, the question is how should communication between MVC and winform,

CodePudding user response:

Signalr communication through the network

You can put your winforms as a special client,

CodePudding user response:

Since it is the same server, I think we should have a good communication way, SignalR in my understanding, like web communications,

CodePudding user response:

reference 4 floor Herry_zzz response:
since it is the same server, I think we should have a good communication way, SignalR in my understanding, like web communications,


Not yes, signalr is cross-platform, and support the web page

CodePudding user response:

Try the WebService?

CodePudding user response:

Or should WCF, can achieve

CodePudding user response:

, 1, winform gathering of other data, for example, to collect hardware ID and state, then sent to the MVC,

The first step is wrong, so we discuss is wrong

MVC or web page, the client is a web page, so that there is nothing to MVC, he needn't to MVC, winform built-in websocket, other pages with connection to the winform provide services directly

CodePudding user response:

Method or many, AJAX can also, SignalR and WCF can also

CodePudding user response:

Using the message queue before, do not know anyone with now,

CodePudding user response:

references to the tenth floor iuhxq response:
used message queue, don't know anyone in the now,

There must be, this thing never out of date,

CodePudding user response:

Winform include a Nancy, so the MVC also can be invoked using HTTP the way of simulation winform API

CodePudding user response:

Use the message queue, depending on your project to do

Web page to display real time, for example, at the same time the background you need to do inventory, at the same time also need real-time data processing, so there will be a message queue, middle collection because of party a, with so many requirements processing in this a service is not cost-effective,
  • Related