Notification pattern using MediatR [C# 11 / .NET 7]
Вставка
- Опубліковано 1 чер 2024
- MediatR NuGet package implements a simple and easy-to-understand version of the mediator design pattern for communicating between components inside a .NET assembly.
#csharp #csharp11 #dotnet #dotnet7 #mediátor
Some of my popular videos:
Elasticsearch with .NET and introduction: • An Introduction to Ela...
Hangfire Scheduling an introduction: • Scheduling recurring j...
ASP.NET Core Authentication with JWT (JSON Web Token): • ASP.NET Core Authentic...
Running Background tasks using IHostedService and BackgroundService (In ASP.NET Core 3.1): • Running Background tas...
How to build an API Gateway in ASP.NET Core using Ocelot (Build API Gateway in a few minutes): • How to build an API Ga...
My blog site: dotnetcorecentral.com - Наука та технологія
Great and clear explanations (y)
Can I get same message multiple times as we get in INotification if I use Irequest and use 2 handlers for same Irequest?
If say after I create an order, I want to make an API call to a third party, should I put this in the notification handler of the order created notification or should I put it in the createorderhandler itself?
is there any way to attach this notification for every commands ? or we need to manually trigger mediatr.publish everytime?
cool
Thank you 😊
Welcome!
Is it ok to use mediator and notifcations for DDD domain events notfications, i mean for notifiend aggregates ,for instance when a Domain Event occured?
Wow great demo... Just what i needed
Can i use this notification handler to publish real time data. E.g. as soon as i register a user. I want to push notification to other users that new user registered.
Can I do that using web api?
Good video, can I use the Mediator pattern to decouple what I used to decouple with Interfaces? Regards
Yes you can!