Build a Chat with SignalR & Blazor WebAssembly in .NET 8 🚀

  Рет қаралды 11,960

Patrick God

Patrick God

Күн бұрын

Пікірлер: 62
@CyprianLibera
@CyprianLibera 10 ай бұрын
First time I ran this project I got an error at line 23 (StateHasChanged();) of Chat.razor, "The current thread is not associated with the Dispatcher. Use InvokeAsync() to switch execution to the Dispatcher when triggering rendering or component state. " Found that changing to InvokeAsync(StateHasChanged); fixed this.
@brirembillel1959
@brirembillel1959 6 ай бұрын
Replace StateHasChanged() with InvokeAsync( StateHasChanged); 🥳
@josemanuellepe3492
@josemanuellepe3492 Ай бұрын
This is essentially what I needed to begin and I'm working around this to my project. You're awesome, man.
@abhishekjadhav9289
@abhishekjadhav9289 27 күн бұрын
Excellent tutorial. I wish Udemy, Pluralsight and linkedin learning would have such tutorial for SignalR which currently does not have a quality course on this topic.
@joaogabrielv.m328
@joaogabrielv.m328 10 ай бұрын
Happy 2024, Patrick :D
@FearGod123
@FearGod123 10 ай бұрын
Hi Patrick, Happy New Year! Thank you for this great video.
@GarethDoherty1985
@GarethDoherty1985 10 ай бұрын
I love SignalR in Blazor. I have an app where users can kick off a data sync on the server which happens in the background when that user presses a button on the client, and I use SignalR to not only notify all other connected users that the sync has started, but also use to tell the code on the clients to disable the button which would allow them to start another data sync. Then when the sync is completed on the server, it sends another message to all connected clients that its finished, they get a nice pop up, and that button is re-enabled again. The tricky parts for me is that this is an Authenticated App, so when creating the SignalR Hub Connection, I have to do it with an auth token from my client. Then dealing with disconnects and reconnects can get tricky too to make it seamless for the end user.
@sergeylevitskiy4611
@sergeylevitskiy4611 10 ай бұрын
Heyyy! Congratulations on double fartherhood😃
@PatrickGod
@PatrickGod 10 ай бұрын
Thank you!! 😁
@MohdRizwan-pf3ex
@MohdRizwan-pf3ex 10 ай бұрын
Happy New Year
@missionyoungblood
@missionyoungblood 10 ай бұрын
Thank you patrick, been watching your videos for a while now and can say you are one of the best orators conveying C# to us newbies 🎯
@PatrickGod
@PatrickGod 10 ай бұрын
Wow, thank you!
@teriyakov
@teriyakov 10 ай бұрын
Thanks so much for this Patrick. Exciting times ahead with signalr and Blazor!
@PatrickGod
@PatrickGod 10 ай бұрын
You're most welcome!
@PaulPreu
@PaulPreu 10 ай бұрын
Happy new Year!
@thotchs4116
@thotchs4116 10 ай бұрын
HAPPY NEW YEAR 2024 PATRICK 🎉🎉
@Tielc
@Tielc 10 ай бұрын
This was great! I'm assuming I could use this as a trigger to tell my app to refresh it's data from a connection as well so that if a user changed something, all connected clients could see those values update in real time?
@PatrickGod
@PatrickGod 10 ай бұрын
Absolutely. That's a perfect use case for web sockets (using SignalR, for instance).
@ArunKumarR-dp3yu
@ArunKumarR-dp3yu 5 ай бұрын
Hi Patrick, Can we use blazor interactive server for creating this chat application?
@gaborr5242
@gaborr5242 12 күн бұрын
Hello Patrick, first of all thank you very much for this video. I have an issue regarding on the DOTNET.js file, the browser cannot reach the file (error code is 404). Do have any Idea?
@maddevskilz1786
@maddevskilz1786 5 ай бұрын
Dangit, I accidentally commented on your old video from .net 6. I suggested you make something besides "chat" because its been done to death. How about some apps - could be any kind of apps that can communicate via signalr to trigger actions between them, and the trigger to start them could be in the web app. So in the web app, I click a button and it triggers an action on a remotely connected command line app. This would be highly useful!
@Leonidn1972
@Leonidn1972 10 ай бұрын
Thanks a lot. You are the best.
@PatrickGod
@PatrickGod 10 ай бұрын
You are!
@zaidmohammed2001
@zaidmohammed2001 10 ай бұрын
HAPPY NEW YEAR 2024 PATRICK , as always: great video and useful information and sure i reference for future apps! :D
@alexanderlagerqvist177
@alexanderlagerqvist177 9 ай бұрын
I'm trying to understand if SignalR is a good use case for the app that im currently trying to improve. I have a webpage of a map that renders a bunch markers/icons based on coordinates I get from an API that constantly changes since its live positions of vehichles. I want the application to be able to render the changes in coordinates more smoothly. Currently I'm just polling/setting interval every 1 second to fetch the coordinates from the API but this seems very ineffective and its quite performance draining and also very buggy. How can i use signalR or other suggested feature to listen to the changes from the API?
@MrFEMGM
@MrFEMGM 10 ай бұрын
Thanks for the video. Is very clear
@adam-xt8te
@adam-xt8te 10 ай бұрын
Why there is @rendermode InteractiveWebAssembly at the top of component if we put the razor file inside Client project which is WA?
@jeancarlosreyesencarnacion
@jeancarlosreyesencarnacion 10 ай бұрын
Can you make a video teaching how to use Blazor-State Package or Fluxor please...
@humayunarafat3810
@humayunarafat3810 10 ай бұрын
Thank you. Is there anything you can do with authentication enabled?
@alamshaikh4358
@alamshaikh4358 10 ай бұрын
Hii I have no idea about blazor web assembly could you share me playlist from your channel where I can learn blazor from scratch. please🙏🙏🙏🙏
@pavelpavlov4247
@pavelpavlov4247 10 ай бұрын
I have been trying to use Azure B2C to allow customers to create accounts and reset passwords on their own, but I was able to do that. I was wondering if you can demonstrate how can the B2C authentication with user flows be used with the new rendering modes in latest Blazor for .NET8
@tidianediallo6199
@tidianediallo6199 10 ай бұрын
great!!!!!!!!!!!
@rockrock33819
@rockrock33819 7 ай бұрын
I am on Rider and only have option to build blazor project : web app and webassembly standalone application. None of them produce a Blazor and Blazor.Client project structure. Any help??
@rockrock33819
@rockrock33819 7 ай бұрын
Also i am on a mac os and dont have access to visual studio
@faridmammadzada
@faridmammadzada 10 ай бұрын
hey, thanks. Great tutorial. Can you pls make a tutorial about debugging WebAssembly project too? thanks
@G3Number
@G3Number 10 ай бұрын
Hi can you teach us how to learn YAML pipelines?
@silentwindstudio
@silentwindstudio 9 ай бұрын
I was loving it, until I opened Task Manager and noticed that it uses Node in the background. In the moment I blocked js in the browser, nothing works lol
@ChandrashekharDeore-p6e
@ChandrashekharDeore-p6e 10 ай бұрын
Thanks so much for this Patrick. Please make one demo for implementing Fluxor in .net8 blazor with render mode set to an interactiveAuto.
@unkn0wnrge189
@unkn0wnrge189 7 ай бұрын
have work a lot with nats package in dart. then I realized all that bs it's web sockets since signalR same bs. Thanks master for enlightme to stop going crazy in learning the same things 100x.
@jameshancock
@jameshancock 10 ай бұрын
Better is strongly typed messaging using a shared class library with no magic strings.
@heikowerner5846
@heikowerner5846 10 ай бұрын
nice ! ... Video.....
@lantisdylan
@lantisdylan 10 ай бұрын
Sir do have a build project in .NET 8?
@encryptor6710
@encryptor6710 4 ай бұрын
It would a lot better if your video wasnt covering the bottom right side of the screen. I missed a few things because you wanted us to see YOU and not the IDE for some reason.....
@rezatayebi9385
@rezatayebi9385 7 ай бұрын
🙏
@PreBuddy
@PreBuddy 10 ай бұрын
pls make tutorial for blazor server
@divanvanzyl7545
@divanvanzyl7545 10 ай бұрын
Im sorry to say, I strongly dislike the new selfie video because it hides part of the solution explorer. Great content as always though!
@PatrickGod
@PatrickGod 10 ай бұрын
Fair enough! Thanks for the feedback. I'll make sure nothing will be hidden next week! Hope then it's okay? Maybe even better then no face bubble?😇
@divanvanzyl7545
@divanvanzyl7545 10 ай бұрын
@@PatrickGod Yes, I don't mind it, as long as it does not hide any information. But it is not a benifit for me.
@valadares462
@valadares462 10 ай бұрын
I disagree. I don't think it bothers anything. I always leave Solution Explorer hidden to free up more space on the screen.
@PatrickGod
@PatrickGod 10 ай бұрын
@@valadares462 Great! Thanks for your feedback!
@karimsoultan4990
@karimsoultan4990 3 ай бұрын
Hi what do you mean by your name
@nick_stelmakh
@nick_stelmakh 10 ай бұрын
each video as for kids. same and same and same. do you have real knowledge? i haven't seen any a deep video yet
@teriyakov
@teriyakov 10 ай бұрын
Use that energy to create your own videos if you feel these aren't sufficiently in-depth. I personally find it very useful. It doesn't 100% cover my use case but it's a great starting point and I'm looking forward to learning more by trial and error and other sources too. I would expect any developer/learner to do the same
@valadares462
@valadares462 10 ай бұрын
It's a shame to have people like you. Who hasn't moved an inch to help the community, and comes here to be negative with one of the guys who has contributed the most to the Blazor community so far. Shame.
@nick_stelmakh
@nick_stelmakh 10 ай бұрын
shame is that you say what i can do and what not. it’s my opinion base on facts.
@clebersondot-net
@clebersondot-net 7 ай бұрын
i've glad found this channel, thanks
@Sasa-sy9dh
@Sasa-sy9dh 10 ай бұрын
Hey Patrick schon mal überlegt deutsche videos zu machen. Es gibt kaum jemanden im deutschsprachigen raum der so interessant .net Content und aktuell macht wie du
@PatrickGod
@PatrickGod 10 ай бұрын
Das weiß ich sehr zu schätzen. Danke dir vielmals! Ich denk drüber nach, aber die Zeit ist wirklich knapp. Ich hoffe die englischen Videos sind auch ausreichend verständlich. ❤
@ivandrofly
@ivandrofly 14 күн бұрын
Statehaschangeg
Blazor WebAssembly ASP.NET Core Hosted in .NET 8 🔥
15:37
Patrick God
Рет қаралды 22 М.
CRUD with the Blazor WebAssembly Render Mode in .NET 8 🔥
50:49
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 5 МЛН
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 3 МЛН
Authorization using Roles with Blazor & Identity in .NET 8 🔐
17:45
Create Cascading Dropdowns with Blazor in .NET 8 🔥
22:12
Patrick God
Рет қаралды 8 М.
Blazor WebAssembly in .NET 8 - Why It Is Still Extremely Valuable
16:41
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 5 МЛН