Тёмный

Build a Real-Time Client/Server Messaging Application - WPF AND SIGNALR IN .NET CORE 

SingletonSean
Подписаться 23 тыс.
Просмотров 30 тыс.
50% 1

Наука

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 40   
@RupertBruce
@RupertBruce 3 года назад
Fantastic presentation! No keyboard noise, good explanation, perfect pace.
@SingletonSean
@SingletonSean 3 года назад
Thanks Rupert! I agree, keyboard noise is a bit distracting, and pace is a big key for me. Glad it's turning out well and that you enjoyed the video!
@michaelmcnally6093
@michaelmcnally6093 2 года назад
Perfect speed run through the concept to an example. So good, I subscribed. Thanks mate
@adrianmurrell2354
@adrianmurrell2354 Год назад
Life-saver! Thanks, a very succinct, easy to understand tutorial which demystified all the complexity you get with trying to read up about it.
@SingletonSean
@SingletonSean Год назад
Awesome, glad this was helpful Adrian!
@vamsikrishnaduggirala7055
@vamsikrishnaduggirala7055 3 года назад
Thank you so much for the Video Sean. Keep up the good work.
@maikborchardt5692
@maikborchardt5692 2 года назад
why did i just find this now :D great job Sean!
@SingletonSean
@SingletonSean 2 года назад
Thank you Maik! I definitely want to do more with SignalR too
@broadshare
@broadshare 2 года назад
Thank you, Sean, very useful video and simplified signalR concept. But I the MVVM model is really deep even though I checked your MVVM tutorial, is possible to do a tutorial on MVVM using the new community toolkit on WPF?
@avatar-kf1ii
@avatar-kf1ii 4 года назад
Hey Sean. Is there a sensible way of broadcasting a message to all the connected clients from the SignalR server itself?
@Po_Manfred
@Po_Manfred 4 года назад
Terrific!
@whoman0385
@whoman0385 2 года назад
thank you sir now i can flex on my friends
@SingletonSean
@SingletonSean 2 года назад
Yes flex on 'em!
@TheJessejunior
@TheJessejunior 3 года назад
thanks Sean!!! Iíve searched all the web, looking for setups of signal clients in c#.
@SingletonSean
@SingletonSean 3 года назад
Awesome Jessé! Glad this was helpful.
@mathisbidault3331
@mathisbidault3331 4 года назад
Hello Sean! Thanks for your video. I have two questions: - Is it possible to retrieve the messages already sent when instantiating a new window? (Retrieve the selected colors from window 1 when opening the new window 2 (without database ?)) - Why when I run the SignalR server in debug mode it works but from the debug folder the connection is refused ( also in admin mode) ? Thanks a lot!
@jich9150
@jich9150 2 года назад
Hi, Sean, it's a great tutorial and subscribed. I tried exactly as it is, but failed with exception "No connection could be made because the target machine actively refused it .". Do you know where I can fix it? Tks. JC
@lmanes
@lmanes 2 года назад
hi sean! how could I host this signalR project in a network? Not on the internet, I mean a LAN network, which only me and my coworkers' computers have access to? How to "publish" this signalR project? Thank you for the great content!!
@SingletonSean
@SingletonSean 2 года назад
Hey Leandro! For something like that, you'd have to host it on one of the computers within the LAN (rather than the cloud). I'd recommend using something like IIS if it's a Windows machine. I'll admit I'm not an expert on this, but checking out an IIS tutorial might be a good place to start!
@lmanes
@lmanes 2 года назад
@@SingletonSean thanks, Sean! I will definitely check it out!!
@bioanu
@bioanu 2 года назад
Hi there! I have exactly the same question! We are working exclusively inside a local LAN. If you find some ideas let me know. Thank you!
@2005bgva
@2005bgva 2 года назад
Hey Sean, maybe this is a silly question, but maybe you can help me: in ColorPicker xaml file you wrote: "ElementName=root" why do you bind to user control?
@ivandrofly
@ivandrofly Год назад
20:57 - Good example when to use `Task.ContinueWith` instead of `async/await` Another video related to this ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-0SCKUine6tY.html Second Video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-8g34hhmiI_Q.html&ab_channel=SingletonSean Diff that has the diff between SendAsync and InvokeAsync ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-8g34hhmiI_Q.html
@ryandaley8927
@ryandaley8927 3 года назад
Im curious if anyone knows if its possible to self host a SignalR server in .NET Core or .NET 5 and broadcast to clients? Essentially the reverse of this example?
@maximebeaudoin4013
@maximebeaudoin4013 4 года назад
Hi I'm trying to use use signalr to make an "online game" (it's literally only 2 rectangles). I was able to follow up until about halfway. The "game" uses monogame/XNA and I could of used sockets but as far a I know there isn't a way to communicate securely across the internet (that doesn't involve shit ton of custom code) using sockets. Documentation on internet is pretty scarce, I find, and my knowledge of signalr isn't broad/good enough to transpose what you did into my project. pls help.
@joseantoniocf6894
@joseantoniocf6894 4 года назад
Thanks for your video that helped a lot, but I have a problem and it is that I want to place the signalr server in an iis on a windows server machine, but I can't get it to work the same way, you could make a video on how to make the settings.
@SingletonSean
@SingletonSean 4 года назад
Hey Jose, glad the video helped. I personally haven't used IIS for SignalR, and have only used IIS once or twice a few years back. I usually just deploy my applications to Azure nowadays. Do you think your issue is specifically with SignalR? In other words, if you deployed a web application to IIS without SignalR (ex: API endpoints, Razor pages, etc.), do the endpoints work as expected?
@joseantoniocf6894
@joseantoniocf6894 4 года назад
@@SingletonSean Thanks for answering me recently I found the cause of the problem capable, when I try to connect to the hub of signalR the server responds with a 101 instead of 200 and on the other hand when publishing some websites in iis I do not have any problem with them the problem only happens when trying to connect to signalr
@donaldconsole9695
@donaldconsole9695 2 года назад
Does your connection status ever get to "connected"?
@avatar-kf1ii
@avatar-kf1ii 4 года назад
Can you add authentication to SignalR? I have an application that uses an API with JWT to validate authenticated clients. SignalR would make a better replacement for some of these API endpoints, but I don't want them open to anybody.
@SingletonSean
@SingletonSean 4 года назад
Of course avatar! That is actually my exact next plan for this application, hahaha. I did a large scale SignalR project a while back and couldn't find any good examples with JWT auth. From what I've read, the key is to pass the access token as a query string to the hub connection URL. I also just did some research, and it seems there's better support for this since I checked last time. If you haven't checked this out yet: docs.microsoft.com/en-us/aspnet/core/signalr/authn-and-authz?view=aspnetcore-3.1
@avatar-kf1ii
@avatar-kf1ii 4 года назад
@@SingletonSean Thanks for the link - seems simple enough :) Keep the awesome videos coming!
@dmccalldds
@dmccalldds 3 года назад
I went through the tutorial starting with the Source Code (Start) files and end up with an error when running ColorChat.SignalR: System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.' Inner Exception FileLoadException: Could not load file or assembly 'System.Text.Encodings.Web, Version=5.0.0.0, Culture=neutral When the error is shown, it is displayed in reference to Startup.cs and highlights line 35: enpoints.MapHub("/colorchat"); I'm not sure what this means, but my guess it that is a problem with the newest ASP.NET framework that is available as of 12/3/2020? I AM able to run the Source Code (End) files flawlessly.
@SingletonSean
@SingletonSean 3 года назад
Hey Dana, I was able to get the application working on .NET 5. Are you using .NET 5? If so, you will need to port your project files and update your NuGet packages. I plan on creating a quick video on porting projects to .NET 5, and I suppose I will make this application the demo app. Alternatively, you could stick to .NET Core 3 for now, make sure you have .NET Core 3 SDK installed, and make sure all of the NuGet packages are not updated for .NET 5. Hopefully that helps a bit, Dana!
@dmccalldds
@dmccalldds 3 года назад
@@SingletonSean I _really_ appreciate your response, but I have no idea what .NET version I'm running, and I'm completely lost with your second sentence. I have a long way to go with Windows programming.
@fkeyzuwu
@fkeyzuwu 3 года назад
18:43 what is the shortcut you did here?
@SingletonSean
@SingletonSean 3 года назад
Hey WhatTheFookiz, after the += you can scaffold out the event handler by just pressing "Tab".
Далее
Китайка стучится Домой😂😆
00:18
#kikakim
00:10
Просмотров 14 млн
Сокетный Клиент-Сервер на C#
58:16
Building Real-Time Applications With SignalR & .NET 7
12:22
Brutally honest advice for new .NET Web Developers
7:19
i fell for mocks again...
9:08
Просмотров 19 тыс.
The Value of Source Code
17:46
Просмотров 51 тыс.
Что изменилось в iPhone за 3 года
1:00
Мэджик! Смартфон 2-в-1!
0:48
Просмотров 773 тыс.