public Task Handle(OrderCompleted message, IMessageHandlerContext context) { testContext.OrderProcessId = message.OrderProcessId.ToString(); testContext.ShippingProcessId = message.ShippingProcessId.ToString(); testContext.OrderCompleted = true; return(Task.CompletedTask); }
public Task Handle(CompleteOrder message, IMessageHandlerContext context) { var orderCompleted = new OrderCompleted { OrderId = Data.OrderId, OrderProcessId = Data.Id, ShippingProcessId = message.ShippingProcessId }; return(context.Publish(orderCompleted)); }