コード例 #1
0
 public static Order ProcessOrder(VersionedEntityId customerId, VersionedEntityId orderId)
 {
     return EventStorage.OrderEventRepository.AppendEvent(new OrderProcessed(customerId, orderId));
 }
コード例 #2
0
 public static void ChangeCustomerStatus(VersionedEntityId id, bool status)
 {
     EventStorage.CustomerEventRepository.AppendEvent(new CustomerStatusChanged(id, status));
 }
コード例 #3
0
 public static Order PlaceOrder(VersionedEntityId customerId)
 {
     return EventStorage.OrderEventRepository.AppendEvent(new OrderCreated(customerId));
 }