From 461b742a0f3359be27544a2773def4f620b97cfa Mon Sep 17 00:00:00 2001 From: hello Date: Wed, 31 Jul 2024 07:17:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/helloshop/ordering-service.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/notes/helloshop/ordering-service.md b/notes/helloshop/ordering-service.md index 22ba003..2745f66 100644 --- a/notes/helloshop/ordering-service.md +++ b/notes/helloshop/ordering-service.md @@ -117,7 +117,18 @@ dotnet add package Dapr.AspNetCore services.AddDaprClient(); ``` -## 使用 +## 重构文件夹 + +`EntityFrameworks` 文件架更改为 `Infrastructure` 文件夹 + +`BasketService` 微服务 `Infrastructure` 之下再放 `Repositories` + +## 实现发件箱模式 + +```csharp +builder.Services.AddTransient>(); +``` + ## 参考资料 @@ -125,4 +136,4 @@ https://learn.microsoft.com/zh-cn/azure/architecture/patterns/cqrs https://learn.microsoft.com/zh-cn/dotnet/architecture/microservices/microservice-ddd-cqrs-patterns -https://www.xcode.me/Training?keyword=cqrs \ No newline at end of file +https://www.xcode.me/Training?keyword=cqrs