GitHunt
TH

thoemmi/WebConsoleDemo

The purpose of this project is to demonstrate how a web application could run remote processes on remote machines using SignalR Core.

Remote Web Console Demo

Disclaimer: This is a small showcase application. There's no
fancy styling, no error checking or anything else beyond the proof
of concept.

The purpose of this project is to demonstrate how a web application
could run remote processes on remote machines. It uses
SignalR Core to bring the
different pieces together:

  • A web application hosting the SignalR hub. This hub has two
    functions:

    • receiving commands from the HTML page and forwarding them to
      the agent.
    • getting the ouput from the agent and forwarding them to the
      HTML page.
  • An HTML page with an input field to enter the command, a submit
    button to send that command to the hub, and a div element where
    the result received from the hub will be added.

  • A console application WebConsoleDemo.Agent running cmd.exe
    in the background. It

    • receives commands form the hub and
    • sends back the outout of the command back to the hub.

Flow Chart

The point of this proof of concept is that SignalR can be used
to send commands to an agent and get back the results in realtime.

Demo

Languages

C#77.7%HTML22.3%

Contributors

Created October 30, 2017
Updated April 2, 2020
thoemmi/WebConsoleDemo | GitHunt