ASP.NET Core SignalR & Worker Services - Getting Started

preview_player
Показать описание
ASP.NET Core SignalR is an open-source library that simplifies adding real-time web functionality to apps. Real-time web functionality enables server-side code to push content to clients instantly. In thi video build an ASP.NET Core Web Application that uses SignalR as well as Worker Services. The Worker Service is a subscriber to a Message Broker and messages it receives are relayed to Web Browsers using SingalR.

The Visual Studio Solution for the code in this video can be found here:

For Live Session (on Novenber 14th 2020 @ 9am EST) please see my community post:

00:00 Introduction
02:00 Diagram and Explanation of the Entire System
07:50 Starting with the Code
08:43 Modify Index Page
09:30 Adding SignalR and Configurating to Startup
11:23 Endpoint Mapping for SignalR Hub
12:44 Installing the SignalR NuGet Package
16:00 Installing the SignalR Client Side JavaScript libraries
17:45 Script tag in Index page for SignalR JavaScript file
19:17 Initial Test of SignalR plumbing
19:35 Description of what we're building today
20:47 Adding our JavaScript file
23:29 Testing Browser connectivity to the Server side Hub
23:48 Getting a Reference to the SignalR in our Application
24:52 Adding the Worker Service to the Project
27:12 Getting a Reference to the IHubContext in a Worker Service
28:00 Sending message to all SignalR Clients
33:35 Adding the JavaScript callback
35:00 Configuring the Worker Service in Startup
36:10 Testing Message are being received
36:41 Improving the Display of Messages
38:52 Testing the Modified Message Display
41:10 Serialization - MessagePack Serialization
43:54 Conclusion
Рекомендации по теме
Комментарии
Автор

Really awesome .
I enjoyed watching till end.
I would like to see your next session soon

syedirfanali
Автор

Great intro to SignalR. The previous video on websockets made this one very easy to grasp. Appreciate your efforts Shiv.

ivanvincent
Автор

This is SO AWESOME!!! thank you a lot for this valuable info!!! just when I ended up creating a BackgroundService for email sending!

rodrigo
Автор

Just found your channel love your explanations have subbed

InfinityDsbm
Автор

BRO. Thank you so much! You made this so incredibly simple to understand and implement myself! 🙂

ruttergod
Автор

Thank you for your professional training. One question: can signalR create a push message that displays notification on mobile when the web application is closed?

hassanr
Автор

Thanks Shiv - very useful video.. a quick question, I have two background services service1 is sending a message to service 2 through channel to process, but how can it receive the notification back when the message is processed by service2?

rambond
Автор

Would this work if the work service was running on another thread, ie windows service that's self hosted outside of the App

leroypakade
Автор

Thank you for this series. Hoping to get some more information about data type we can use to send messages.
Just a question Have you changed the video ratio from your end or my phone latest update messed that up. i was able to zoom your video earlier to see details of what you write from mobile but in this I couldn't.

Thank for all your hard work waiting for the next notification

saurabhchauhan
Автор

Dear Mr. Shiv Kumar
Which Camera & Microphone you are using to record your videos?

mfayeeg
Автор

Seems like you have once again been busy over the weekend .. ;)

hansrudolf