public void Handle(OrderAccepted message) { log.Info($"Shipping order {message.OrderId} for {message.Value}"); chaos.Invoke(); var orderShipped = new OrderShipped { OrderId = message.OrderId, Value = message.Value }; bus.Publish(orderShipped); }
public async Task Handle(OrderAccepted message, IMessageHandlerContext context) { log.Info($"Shipping order {message.OrderId} for {message.Value}"); await chaos.Invoke() .ConfigureAwait(false); var orderShipped = new OrderShipped { OrderId = message.OrderId, Value = message.Value }; await context.Publish(orderShipped) .ConfigureAwait(false); }
public Task Handle(ShippingMessage message, IMessageHandlerContext context) { log.Info($"Processing message{message.Id}"); return(chaos.Invoke()); }
public Task Handle(OrderShipped message, IMessageHandlerContext context) { log.Info($"Completing order {message.OrderId} for {message.Value}"); return(chaos.Invoke()); }