Ejemplo n.º 1
0
        public async Task HandleAsync(InvitationRejectedEvent message)
        {
            var invitation = await domainRepository.GetByKeyAsync <Guid, Invitation>(message.InvitationId);

            invitation.Transit(message);
            await this.domainRepository.SaveAsync <Guid, Invitation>(invitation);
        }
Ejemplo n.º 2
0
 public void Transit(InvitationRejectedEvent message)
 {
     ApplyEvent(new InvitationRejectedTransitionEvent());
 }