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); }
public void Transit(InvitationRejectedEvent message) { ApplyEvent(new InvitationRejectedTransitionEvent()); }