修改文档

This commit is contained in:
hello 2024-08-30 15:06:37 +08:00
parent d85b5b6539
commit 36c8b15620

View File

@ -69,8 +69,7 @@ builder.Services.AddMediatR(options => options.RegisterServicesFromAssembly(Asse
``` ```
## 使用 Mediator 请求管道处理 CQRS 中的命令 ## 使用 Mediator 请求管道处理 CQRS 中的命令
=
![ordering-service-identified-command](https://oss.xcode.me/notes/helloshop/ordering-service-identified-command.svg)
`LoggingBehavior`、`ValidatorBehavior` 和 `TransactionBehavior` `LoggingBehavior`、`ValidatorBehavior` 和 `TransactionBehavior`
@ -92,6 +91,12 @@ builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(ValidatorBehavio
builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(TransactionBehavior<,>)); builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(TransactionBehavior<,>));
``` ```
## 消息去重机制
![ordering-service-identified-command](https://oss.xcode.me/notes/helloshop/ordering-service-identified-command.svg)
## 实现 CQRS 中的 Query 模式 ## 实现 CQRS 中的 Query 模式
```csharp ```csharp