SignalR Broadcast Send Message from Api Server to Multiple Clients .Net6 Blazor Server

  Рет қаралды 20,944

Coding Jackpot

Coding Jackpot

2 жыл бұрын

.Net6 Blazor Server Broadcast Message from Api to Multiple Clients using SignalR
Download Source Code :
www.buymeacoffee.com/codingja...

Пікірлер: 34
@marcaldo
@marcaldo Жыл бұрын
Very good! Thank you for your work!
@NoOne-po1oe
@NoOne-po1oe 8 ай бұрын
Thanks man you help me a lot even though it lacks some information.
@Tranehed
@Tranehed Жыл бұрын
Thank you! Very helpful :)
@shabanelmogy7912
@shabanelmogy7912 7 ай бұрын
Thank you very much For This Excellent Explain
@user-lt7rk4jf7o
@user-lt7rk4jf7o Жыл бұрын
Thank you
@terminator4974
@terminator4974 Жыл бұрын
Ty greetings don from mumbai
@solesolver5740
@solesolver5740 Жыл бұрын
You are not using BroadcastMessage or BroadcastEmployee from signalrhub, and directly calling sendAsync in controller to message all clients
@NoOne-po1oe
@NoOne-po1oe 8 ай бұрын
I was wondering too. Do we supposed to used it?
@tecnologiaeinformacionmoyb2723
@tecnologiaeinformacionmoyb2723 2 ай бұрын
Hola ya habia visto en un blog de MS como inyectar el heredado del Hub como contexto pero para un objeto que generaba mensajes cada cierto tiempo , ahora tu explicación me deja mas claro su uso, y cómo lo usas para el servicio de Api Rest bien explicado, saludos desde México
@dineshtiparkar6444
@dineshtiparkar6444 8 ай бұрын
Very nice
@hardikmasalawala8714
@hardikmasalawala8714 Жыл бұрын
Perfectly managed
@arkadiuszmikulec5241
@arkadiuszmikulec5241 Жыл бұрын
Hi, Super tutorial. One question. Is there any reason why we do not add, on a server side, SignalHub class as a Singelton and insted of using IHubContext use instance of SignalHub directly? Calling method BrodcastEmployee direct from Api controller can harm preformance or anything else? Thanks for answer.
@tecnologiaeinformacionmoyb2723
@tecnologiaeinformacionmoyb2723 2 ай бұрын
intente instanciar el heredado de Hub pero nunca llegaban los mensajes, solo haciendo inyeción como contexto es que llegaron los mensajes
@user-bs2gq4cj1b
@user-bs2gq4cj1b Жыл бұрын
Hi, how to send notification to particular user?
@bankniftydailylevel2119
@bankniftydailylevel2119 Жыл бұрын
how can we implement using azure signalr
@cnchandroo
@cnchandroo 2 жыл бұрын
Nice video on SignalR with very good explanations. Is it possible to send messages to specific users instead of broadcasting to all clients using the same WebAPI? Thanks.
@CodingJackpot
@CodingJackpot 2 жыл бұрын
I will create a video tutorial for broadcasting signalr message to a specific user
@andrewglasgow4812
@andrewglasgow4812 2 жыл бұрын
@@CodingJackpot When?
@kanatkudaibergenov564
@kanatkudaibergenov564 Жыл бұрын
Write me, and i will show you how to do that
@habibi750
@habibi750 Жыл бұрын
Why are you using an api with blazor server?
@MohammadAlbazel
@MohammadAlbazel 2 жыл бұрын
Great! How can I use this to design a real time wallboard statistics, how can I call the api in every second
@CodingJackpot
@CodingJackpot 2 жыл бұрын
to call the api service every second you will have to make use of azure http logic apps when we deploy it .. in logic apps we can mention the x seconds to call the api
@manjunathap5688
@manjunathap5688 2 жыл бұрын
Where i CAn downoad this source code?
@CodingJackpot
@CodingJackpot 2 жыл бұрын
www.buymeacoffee.com/codingjackpot/e/82139
@rodrigo6459
@rodrigo6459 Жыл бұрын
Microsoft.AspNetCore.SignalR was deprecated... which one replaces it?
@habibi750
@habibi750 Жыл бұрын
Did you ever find an answer to this?
@rodrigo6459
@rodrigo6459 Жыл бұрын
@@habibi750 Nope..! :(
@user-lg4jd3ij3y
@user-lg4jd3ij3y 2 жыл бұрын
Thank you very much. Very useful video. Is it possible to use SqlDependency?
@CodingJackpot
@CodingJackpot 2 жыл бұрын
Do you want to save the signal r messages in SQL server database?
@user-lg4jd3ij3y
@user-lg4jd3ij3y 2 жыл бұрын
Hello, it works if it is in the same solution but if the projects is different solution, it does not work why
@yusufhasan1794
@yusufhasan1794 Жыл бұрын
It wan't helpful
@ifpchan
@ifpchan 2 жыл бұрын
protected override async Task OnInitializedAsync() { empList = new List(); hubConnection = new HubConnectionBuilder() .WithUrl("localhost:7036/signalhub") .Build(); hubConnection.On("ReceiveEmployee", (incomingEmployee) => { empList.Add(incomingEmployee); updatedOn = DateTime.Now.ToLongDateString(); //StateHasChanged(); InvokeAsync(StateHasChanged); }); hubConnection.On("ReceiveMessage", (incomingMessage) => { stringList.Add(incomingMessage); updatedOn = DateTime.Now.ToLongDateString(); // StateHasChanged(); InvokeAsync(StateHasChanged); }); await hubConnection.StartAsync(); }
@CodingJackpot
@CodingJackpot 2 жыл бұрын
What issue are you getting in this code ?
@faustoluis5486
@faustoluis5486 2 жыл бұрын
@@CodingJackpot He should see errors, because we have to call SateHasChanged to update the UI and, in the code, those statements are commented...
Real-Time Revolution: SignalR in Action - Kevin Griffin - NDC London 2022
1:06:04
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 19 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 22 МЛН
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 4,1 МЛН
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 117 М.
Dependency Injection in .NET Core (.NET 6)
1:00:32
IAmTimCorey
Рет қаралды 186 М.
Going real-time with ASP.NET Core SignalR and the Azure SignalR Service
26:34
Generative AI into ANY .NET App with SemanticKernel
12:39
Nick Chapsas
Рет қаралды 43 М.
SignalR real time Table data in EF Core | SQL Tabledependency - Part 1
33:24
Vision Pro наконец-то доработали! Но не Apple!
0:40
ÉЖИ АКСЁНОВ
Рет қаралды 351 М.
Yanlışlıkla Telefonumu Parçaladım!😱
0:18
Safak Novruz
Рет қаралды 521 М.
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 8 МЛН