Exemplo n.º 1
0
 private void HandleImpl(OrderPriced t)
 {
     if (_dict.TryGetValue(t.CorrelationId, out var m))
     {
         m.Handle(t);
     }
 }
Exemplo n.º 2
0
 public void Handle(OrderPriced message)
 {
     _bus.Publish(new TakePayment(message.Order)
     {
         CorrelationId = message.CorrelationId,
         CausationId   = message.MessageId
     });
 }
Exemplo n.º 3
0
 public void Handle(OrderPriced message)
 {
     midgets[message.CorrelationId].Handle(message);
 }
Exemplo n.º 4
0
 public void Handle(OrderPriced message)
 {
     _bus.Publish(new TakePayment(message.Order, message.MessageId, message.CorrelationId));
 }
 public void Handle(OrderPriced message)
 {
     _publisher.Publish(new TakePayment(message, message.Order));
 }
Exemplo n.º 6
0
 public void Handle(OrderPriced @event)
 {
     dispatcher.Publish(new TakePayment(@event.Order, @event.Id));
 }