Example #1
0
        private void OnAnchorsReservationCancelled(AnchorsReservationCancelled e)
        {
            this.pendingReservations.Remove(e.ReservationId);

            foreach (var anchor in e.AvailableAnchorsChanged)
            {
                this.remainingAnchors[anchor.AnchorType] = this.remainingAnchors[anchor.AnchorType] + anchor.Quantity;
            }
        }
Example #2
0
 public void Handle(AnchorsReservationCancelled @event)
 {
     this.UpdateAvailableQuantity(@event, @event.AvailableAnchorsChanged);
 }