鼎鼎知识库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4、Endpoint模式,下一代的接口解耦.md 289B

3 years ago
12345
  1. 当在`Controller`中使用`MediatR`后,业务逻辑被封装了单独的`IRequest`和`IRequestHandler`。但是`Controller`层面违反了单一职责原则。使用`Endpoint`可以做到一个接口一次封装。
  2. 源代码:`F:\demos\CleanArchitecture\UseEndpoint\WebApplication1`