|
@@ -119,7 +119,8 @@ public class OrderDomainService : IOrderDomainService, IScopeDependency
|
|
|
|
|
|
await _orderRepository.UpdateAsync(order, cancellationToken);
|
|
|
|
|
|
- //todo push msg to next step handler
|
|
|
+ await _capPublisher.PublishAsync(EventNames.HotlineOrderCreated, _mapper.Map<OrderDto>(order),
|
|
|
+ cancellationToken: cancellationToken);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -159,6 +160,9 @@ public class OrderDomainService : IOrderDomainService, IScopeDependency
|
|
|
CheckOrderIfFiled(order);
|
|
|
order.Filed();
|
|
|
await _orderRepository.UpdateAsync(order, cancellationToken);
|
|
|
+
|
|
|
+ await _capPublisher.PublishAsync(EventNames.HotlineOrderCreated, _mapper.Map<OrderDto>(order),
|
|
|
+ cancellationToken: cancellationToken);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|