示例#1
0
        public void Handle(AccountDeletedEvent @event)
        {
            var userDB = _userRepository.GetUserBy(user => user.Id == @event.UserId);

            userDB.SalesmanagoContactId = DeleteContact(userDB.UserEmail)
                ? null
                : userDB.SalesmanagoContactId;
            _userRepository.Update(userDB);
        }
 public void Handle(AccountDeletedEvent e)
 {
     this.Version = e.Version;
     this.State   = e.AccountState;
 }
示例#3
0
 public void Handle(AccountDeletedEvent message)
 {
     this._db.Update(message.AggregateId, message.AccountState, message.Version);
 }
示例#4
0
 private void HandleAccountDeletedEvent(AccountDeletedEvent obj)
 {
     this.RefreshStorageAccounts();
 }
示例#5
0
 private void HandleAccountDeletedEvent(AccountDeletedEvent obj)
 {
     this.ResetNavigation();
 }