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.
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.
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.
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?
Hello Patrick. thank you for the video. I tried to write the solution. I have an issue with the "receive". The binding with "userInpu" and "messageInput" is ok, I had a check in debugger, hubConnection.SendAsync get the values that I inserted in the textbox but I have no values in .. Can I do some other check?
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?
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!
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?
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??
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
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.
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
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.....
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
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.
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
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. ❤
This is essentially what I needed to begin and I'm working around this to my project. You're awesome, man.
Hi Patrick, Happy New Year!
Thank you for this great video.
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 🎯
Wow, thank you!
Thanks so much for this Patrick. Exciting times ahead with signalr and Blazor!
You're most welcome!
Happy 2024, Patrick :D
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.
Replace StateHasChanged() with InvokeAsync( StateHasChanged); 🥳
Heyyy! Congratulations on double fartherhood😃
Thank you!! 😁
HAPPY NEW YEAR 2024 PATRICK , as always: great video and useful information and sure i reference for future apps! :D
Happy new Year!
HAPPY NEW YEAR 2024 PATRICK 🎉🎉
Happy New Year
Thanks a lot.
You are the best.
You are!
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.
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.
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?
Absolutely. That's a perfect use case for web sockets (using SignalR, for instance).
Thanks for the video. Is very clear
Hi Patrick,
Can we use blazor interactive server for creating this chat application?
Hello Patrick. thank you for the video. I tried to write the solution. I have an issue with the "receive". The binding with "userInpu" and "messageInput" is ok, I had a check in debugger, hubConnection.SendAsync get the values that I inserted in the textbox but I have no values in .. Can I do some other check?
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?
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!
Thank you. Is there anything you can do with authentication enabled?
Why there is @rendermode InteractiveWebAssembly at the top of component if we put the razor file inside Client project which is WA?
great!!!!!!!!!!!
i've glad found this channel, thanks
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🙏🙏🙏🙏
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?
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??
Also i am on a mac os and dont have access to visual studio
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
Can you make a video teaching how to use Blazor-State Package or Fluxor please...
hey, thanks. Great tutorial. Can you pls make a tutorial about debugging WebAssembly project too? thanks
Hi can you teach us how to learn YAML pipelines?
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.
Thanks so much for this Patrick. Please make one demo for implementing Fluxor in .net8 blazor with render mode set to an interactiveAuto.
nice ! ... Video.....
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
Better is strongly typed messaging using a shared class library with no magic strings.
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.....
Im sorry to say, I strongly dislike the new selfie video because it hides part of the solution explorer. Great content as always though!
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?😇
@@PatrickGod Yes, I don't mind it, as long as it does not hide any information. But it is not a benifit for me.
I disagree. I don't think it bothers anything. I always leave Solution Explorer hidden to free up more space on the screen.
@@valadares462 Great! Thanks for your feedback!
🙏
Sir do have a build project in .NET 8?
pls make tutorial for blazor server
Hi what do you mean by your name
each video as for kids. same and same and same. do you have real knowledge? i haven't seen any a deep video yet
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
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.
shame is that you say what i can do and what not. it’s my opinion base on facts.
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
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. ❤
Statehaschangeg