filmov
tv
A Better Pub/Sub Messenger for .NET Applications with WeakReferenceMessenger
Показать описание
Sometimes you need to pass pieces of data to and from different parts of your application. This may be for communication between viewmodels or perhaps from your app startup class passing important information. With the .NET Community Toolkit you have a simple cross-platform way of sending and receiving messages no matter what type of app your are building. You can use it with .NET MAUI, WinUI, WPF, WinForms, ASP.NET Core, or just about any other .NET application!
Join this channel to get access to perks:
Follow:
Disclaimer: This channel, videos, and streams are created in my spare time and are a product of me... James Montemagno! They are NOT officially affiliated or endorsed by Microsoft (my employer) in any way. Opinions and views are my own.
Chapters:
00:00 - Why you need a messenger for apps
01:30 - App and code overview
03:40 - Adding CommunityToolkit.Mvvm
04:00 - Creating a message to send
06:05 - Subscribing to messages
10:00 - Sending messages
13:00 - Cleaner implementation with IRecipient
15:05 - Wrap-up
My Setup:
#dotnet #dotnetmaui #aspnetcore
Join this channel to get access to perks:
Follow:
Disclaimer: This channel, videos, and streams are created in my spare time and are a product of me... James Montemagno! They are NOT officially affiliated or endorsed by Microsoft (my employer) in any way. Opinions and views are my own.
Chapters:
00:00 - Why you need a messenger for apps
01:30 - App and code overview
03:40 - Adding CommunityToolkit.Mvvm
04:00 - Creating a message to send
06:05 - Subscribing to messages
10:00 - Sending messages
13:00 - Cleaner implementation with IRecipient
15:05 - Wrap-up
My Setup:
#dotnet #dotnetmaui #aspnetcore
Комментарии