DEV Community

loading...
Cover image for Build a Web Console with ASP.NET and SignalR

Build a Web Console with ASP.NET and SignalR

Dalbir Singh
Dalbir is a .NET / SQL SERVER Developer (MCSD certified) based in the UK. Since the early 2000s he’s built web/data solutions and provided software consultancy to small and large blue-chip enterprises
・1 min read

What is it?

Web consoles are often featured on AWS and Azure. They offer meaningful feedback via output messages while executing time-consuming tasks.

I had to build something similar for a client recently and did some prototyping using ASP.NET with SignalR.

There are many articles on the web describing how SignalR works - and some useful examples that involve creating a chat server/client. Rather than getting bogged down in the details, I think it would be helpful to see SignalR in action.

I've uploaded my 'web console' prototype project to Github, which is a simpler implementation of SignalR with ASP.NET.

If you work with ASP.NET and are curious about web consoles feel free to download and have a play.

Documentation can be found within the Readme on GitHub. πŸ˜‰

GitHub logo dalbir-singh / signalr-web-console

A web based output console for displaying progress messages when executing tasks using ASP.NET C# and SignalR

signalr-web-console

A web based output console for displaying progress messages when executing tasks using ASP.NET C# and SignalR.

What is it?

This repository contains a simple ASP.NET web application using SignalR to send status/progress messages to the client.

This feature is useful when a user triggers one or more time consuming backend processes, usually between 10-30 seconds.

In addition to just displaying messages, the project includes a console for printing the messages a.k.a web console.

Do note, the console is read-only - for printing messages.

How to run

Clone the repo, restore nuget packages (clean & build) and run!

(ASP.NET - 4.7.2 .Net Framework)

How does it work?

When you launch the project, a page will load with a button and a console window.

When you click on the button, an AJAX request will be posted to the server and time consuming tasks will be simulated. As each task completes…

Discussion (0)