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