private void HandleImpl(OrderPaid t) { if (_dict.TryGetValue(t.CorrelationId, out var m)) { m.Handle(t); } }
public void Handle(OrderPaid message) { _publisher.Publish(new PrintReceipt(message, message.Order)); _publisher.Publish(new CookFood(message, message.Order)); _publisher.Publish(new SendMeIn(message, DateTime.UtcNow.AddSeconds(10), x => new CookingTimedOut(x, message.Order))); }
public void Handle(OrderPaid message) { _bus.Publish(new CookFood(message.Order) { CorrelationId = message.CorrelationId, CausationId = message.MessageId, expiry = DateTimeOffset.UtcNow.AddHours(2) }); }
public void Handle(OrderPaid message) { midgets[message.CorrelationId].Handle(message); }
public void Handle(OrderPaid message) { _bus.Publish(new CookFood(message.Order, message.MessageId, message.CorrelationId)); }
public void Handle(OrderPaid message) { IProcessManager pm; _persistence.TryRemove(message.CorrelationId, out pm); }
public void Handle(OrderPaid message) { _publisher.Publish(new PrintReceipt(message, message.Order)); _publisher.Publish(new OrderFinalized(message, message.Order)); }
public void Handle(OrderPaid message) { _bus.Publish(new OrderComplete(message.Order, message.MessageId, message.CorrelationId)); }