- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Building a Custom Domain Events Dispatcher in .NET
Get the free Clean Architecture template: https://dub.sh/ca-template
Want to master Clean Architecture? Go here: https://bit.ly/3PupkOJ
Want to unlock Modular Monoliths? Go here: https://bit.ly/3SXlzSt
Get the source code here: https://www.patreon.com/milanjovanovic
Thinking of removing MediatR from your .NET application?
In this video, I show you how I built a custom domain event dispatcher to replace MediatR’s IPublisher.Publish functionality — without breaking my application layer.
You’ll learn:
- How MediatR handles domain events under the hood
- How to define IDomainEvent and IDomainEventHandler interfaces
- Wiring up the dispatcher with EF Core and SaveChangesAsync
- Using reflection and scoped DI to invoke handlers
- Trade-offs (performance, type safety, complexity)
Whether you're building a Clean Architecture app or want more control over your CQRS stack — this guide will help you move away from third-party dependencies like MediatR.
Check out my courses:
https://www.milanjovanovic.tech/courses
Read my Blog here:
https://www.milanjovanovic.tech/blog
Join my weekly .NET newsletter:
https://www.milanjovanovic.tech
Chapters
0:00 How Domain Events Work
2:42 Creating IDomainEventHandler
4:37 Adding Handlers in DI
6:47 Creating DomainEventsDispatcher
13:51 Testing the Implementation
Видео Building a Custom Domain Events Dispatcher in .NET канала Milan Jovanović
Want to master Clean Architecture? Go here: https://bit.ly/3PupkOJ
Want to unlock Modular Monoliths? Go here: https://bit.ly/3SXlzSt
Get the source code here: https://www.patreon.com/milanjovanovic
Thinking of removing MediatR from your .NET application?
In this video, I show you how I built a custom domain event dispatcher to replace MediatR’s IPublisher.Publish functionality — without breaking my application layer.
You’ll learn:
- How MediatR handles domain events under the hood
- How to define IDomainEvent and IDomainEventHandler interfaces
- Wiring up the dispatcher with EF Core and SaveChangesAsync
- Using reflection and scoped DI to invoke handlers
- Trade-offs (performance, type safety, complexity)
Whether you're building a Clean Architecture app or want more control over your CQRS stack — this guide will help you move away from third-party dependencies like MediatR.
Check out my courses:
https://www.milanjovanovic.tech/courses
Read my Blog here:
https://www.milanjovanovic.tech/blog
Join my weekly .NET newsletter:
https://www.milanjovanovic.tech
Chapters
0:00 How Domain Events Work
2:42 Creating IDomainEventHandler
4:37 Adding Handlers in DI
6:47 Creating DomainEventsDispatcher
13:51 Testing the Implementation
Видео Building a Custom Domain Events Dispatcher in .NET канала Milan Jovanović
domain event domain events domain event vs integration event domain events pattern outbox pattern domain event outbox domain event pattern domain event ddd domain event domain-driven design domain event architecture event driven architecture domain event outbox pattern outbox domain event outbox domain event pattern domain event clean architecture domain events .net 6 domain events .net 7 domain events clean architecture domain event handler dispatcher
Комментарии отсутствуют
Информация о видео
27 мая 2025 г. 16:00:49
00:16:06
Другие видео канала




















