你的位置: 码友网首页 / 资讯源列表 / No, MediatR Didn't Run Over My Dog

关于[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

收录时间: 2020-06-23 浏览量: 1580 分类: .NET

| 0 收藏 | 0