Merge branch 'master' of https://github.com/bit365/notebooks
This commit is contained in:
commit
2b5f7b5c44
@ -117,7 +117,18 @@ dotnet add package Dapr.AspNetCore
|
|||||||
services.AddDaprClient();
|
services.AddDaprClient();
|
||||||
```
|
```
|
||||||
|
|
||||||
## 使用
|
## 重构文件夹
|
||||||
|
|
||||||
|
`EntityFrameworks` 文件架更改为 `Infrastructure` 文件夹
|
||||||
|
|
||||||
|
`BasketService` 微服务 `Infrastructure` 之下再放 `Repositories`
|
||||||
|
|
||||||
|
## 实现发件箱模式
|
||||||
|
|
||||||
|
```csharp
|
||||||
|
builder.Services.AddTransient<IDistributedEventLogService, DistributedEventLogService<OrderingServiceDbContext>>();
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## 参考资料
|
## 参考资料
|
||||||
|
|
||||||
@ -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://learn.microsoft.com/zh-cn/dotnet/architecture/microservices/microservice-ddd-cqrs-patterns
|
||||||
|
|
||||||
https://www.xcode.me/Training?keyword=cqrs
|
https://www.xcode.me/Training?keyword=cqrs
|
||||||
|
Loading…
Reference in New Issue
Block a user