Esempio n. 1
0
        public async Task Handle(ReservationDeletedEvent deletedEvent)
        {
            await _action.Execute <ReservationDeletedNotificationEvent>(deletedEvent);

            await _reservationService.UpdateReservationStatus(deletedEvent.Id, ReservationStatus.Deleted);
        }
Esempio n. 2
0
        public async Task Handle(ReservationCreatedEvent createdEvent)
        {
            await _notifyAction.Execute <ReservationCreatedNotificationEvent>(createdEvent);

            await _addNonLevyReservationToReservationsIndexAction.Execute(createdEvent);
        }