DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

UI Notifications System With Blazor, SignalR and OpenSleigh

4 years ago www.davideguida.com
UI Notifications System With Blazor, SignalR and OpenSleigh

Summary: This is a summary of an article originally published by the source. Read the full original article here →

my personal thoughts about life, coding, the universe and everything. Our goal is to allow the user to trigger the execution of a long-running operation.

Our application will of course be much simpler than the Azure Portal, but the basic idea remains untouched: We can set the number of steps we want to perform and then trigger the execution in the backend, using OpenSleigh.

The next step is to create a Razor page: We also need to handle the connection to the server and dealing with message exchanging: As you can see, in the OnInitializedAsync() method we’re initializing the connection to the Hub and registering to the Notification event. The event handler receives the message from the server and appends it to our list of notifications.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com