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; } }
public void Handle(AnchorsReservationCancelled @event) { this.UpdateAvailableQuantity(@event, @event.AvailableAnchorsChanged); }