关于[No, MediatR Didn't Run Over My Dog]的摘要:
Injecting command handler abstractions into classes that depend on command handlers is good. Replacing that by injecting an IMediator and sending commands to that is probably bad. The reasons given for using it are often meaningless. We often use it to implement the service locator anti-pattern, not the mediator design pattern.
原文地址: http://scotthannen.org/blog/2020/06/20/mediatr-didnt-run-over-dog.html