#Mediatr
3 notas · última:
CQRS Pattern With MediatR
CQRS separates writes from reads so each side can be optimized independently. The text also shows how MediatR can model commands and queries with handlers and a request pipeline.
Don't use MediatR by default on all .NET projects
The text argues that MediatR should not be added by default to every .NET project: the choice depends on the use case, and using internal messaging in dependent contexts can create unnecessary complexity.
Handling Dependency Injection in Inherited Classes
The post shows that constructor injection in a base class becomes tedious when new shared dependencies are added to every subclass, and proposes a dependency aggregate to centralize them.
