使用分布式事件总线异步通信

This commit is contained in:
administrator committed 2024-09-24 22:53:54 +08:00
1 parent 385b09d482
commit c16d6ece15
26 files changed
+1130 -91

No files matched your search

@@ -0,0 +1,11 @@
// Copyright (c) HelloShop Corporation. All rights reserved.
// See the license file in the project root for more information.
using HelloShop.ServiceDefaults.DistributedEvents.Abstractions;
namespace HelloShop.OrderingService.DistributedEvents.Events
{
public record OrderAwaitingValidationDistributedEvent(int OrderId, IEnumerable<OrderStockItem> OrderStockItems) : DistributedEvent;
public record OrderStockItem(int ProductId, int Units);
}