1

Topic: Transmission from the console application on a site ASP.NET MVC

All greetings. There is a console application # which is connected to some equipment, and there is a web site written on MVC 5, on which it is necessary to receive  when the console application finds out problems with the equipment. The task - it is necessary somehow    from the console application on the web site. In an ideal to make so: 1. The console application lifts server socket TcpListener 2. The web application is connected by means of TcpClient and holds TCP-connection open 3. When there is a problem with the equipment, the console application through open TCP-connection notifies a server part of the web site 4. Whether whether for  a client part of the web site it is possible use a web socket Two questions I. can to hold asp.net opened TCP-connection for the decision of item 2,3 II. there is an alternative to web sockets of item 4 decision? Thanks.

2

Re: Transmission from the console application on a site ASP.NET MVC

Hello, busybox, you wrote: B> the Task - it is necessary somehow    from the console application on the web site. Look signalr

3

Re: Transmission from the console application on a site ASP.NET MVC

Hello, gandjustas, you wrote: G> Hello, busybox, you wrote: B>> the Task - it is necessary somehow    from the console application on the web site. G> look signalr How much I understand, it solves only a task part - interaction between  and  a site. It is necessary for me, that  held constant connection to the console application. SignalR here too can help?

4

Re: Transmission from the console application on a site ASP.NET MVC

Hello, busybox, you wrote: whether B I. can hold asp.net opened TCP-connection for item 2,3 decision? What for constant connection? Than the variant with normal HTTP-inquiry does not approach? It on the order is easier. Whether B II. there is an alternative to web sockets of item 4 decision? I  would recommend web sockets. It simple enough in implementation. There only with reliability not so clearly - I so understand, if the client passed the message (the network disappeared for a second) at level of the protocol in any way it is impossible to understand it. It is necessary to fence something the, any system of assurance of receipt of messages from client side.

5

Re: Transmission from the console application on a site ASP.NET MVC

Hello, busybox, you wrote: B>>> the Task - it is necessary somehow    from the console application on the web site. G>> look signalr B> How much I understand, it solves only a task part - interaction between  and  a site. It is necessary for me, that  held constant connection to the console application. SignalR here too can help? You misunderstand. You do SignalR a hub. You are connected to it from the browser and from the console application.  pulls a method which sends to all clients of the notification.

6

Re: Transmission from the console application on a site ASP.NET MVC

Hello, gandjustas, you wrote: G> Hello, busybox, you wrote: B>>>> the Task - it is necessary somehow    from the console application on the web site. G>>> look signalr B>> How much I understand, it solves only a task part - interaction between  and  a site. It is necessary for me, that  held constant connection to the console application. SignalR here too can help? G> you misunderstand. You do SignalR a hub. You are connected to it from the browser and from the console application.  pulls a method which sends to all clients of the notification. Thanks for . I study SignalR hubs