예제 #1
0
        public void AddItemToCard(Guid orderId, string card)
        {
            var orderItemAddedToCardEvent = new OrderItemAddedToCardEvent()
            {
                OrderId = orderId,
                Card    = card
            };

            this.ApplyChange(orderItemAddedToCardEvent);
        }
예제 #2
0
 public void Handle(OrderItemAddedToCardEvent tEvent)
 {
     Console.WriteLine($"order listview handler: order item added for order {tEvent.OrderId} on thread {System.Threading.Thread.CurrentThread.ManagedThreadId}");
 }
예제 #3
0
 private void Apply(OrderItemAddedToCardEvent orderItemAddedToCardEvent)
 {
     Card = orderItemAddedToCardEvent.Card;
 }