Example #1
0
 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)));
 }
Example #3
0
 public void Handle(OrderPaid message)
 {
     _bus.Publish(new CookFood(message.Order)
     {
         CorrelationId = message.CorrelationId,
         CausationId   = message.MessageId,
         expiry        = DateTimeOffset.UtcNow.AddHours(2)
     });
 }
Example #4
0
 public void Handle(OrderPaid message)
 {
     midgets[message.CorrelationId].Handle(message);
 }
Example #5
0
 public void Handle(OrderPaid message)
 {
     _bus.Publish(new CookFood(message.Order, message.MessageId, message.CorrelationId));
 }
Example #6
0
        public void Handle(OrderPaid message)
        {
            IProcessManager pm;

            _persistence.TryRemove(message.CorrelationId, out pm);
        }
Example #7
0
 public void Handle(OrderPaid message)
 {
     _publisher.Publish(new PrintReceipt(message, message.Order));
     _publisher.Publish(new OrderFinalized(message, message.Order));
 }
Example #8
0
 public void Handle(OrderPaid message)
 {
     _bus.Publish(new OrderComplete(message.Order, message.MessageId, message.CorrelationId));
 }