async Task IHandles <AttendeeUnregistered> .HandleAsync(AttendeeUnregistered message)
        {
            var attendee = _dataAccess.GetById(message.Id);

            if (attendee != null)
            {
                attendee.IsActiveRegistration    = false;
                attendee.ReasonForUnregistration = message.Reason;
                await _dataAccess.UpdateAsync(attendee);
            }
        }
Exemple #2
0
 private void Apply(AttendeeUnregistered @event)
 {
     _isUnregistered = true;
 }