示例#1
0
        public void Handle(AccountUnlockedEvent @event)
        {
            var account = AccountInfos.FirstOrDefault(x => x.AccountId == @event.AccountId);

            if (account != null)
            {
                account.Unlock();
            }
        }
 public void Handle(AccountUnlockedEvent e)
 {
     this.Version = e.Version;
     this.State   = e.AccountState;
 }
示例#3
0
 private void UpdateFrom(AccountUnlockedEvent @event)
 {
     _numberOfOverdraws = 0;
     _isLocked          = false;
 }
 public void Handle(AccountUnlockedEvent <T> evt)
 {
     Process(evt);
 }
示例#5
0
 public void Handle(AccountUnlockedEvent e)
 {
     Notifications.Add(new Notification(e.AccountId, string.Format("Account unlocked.")));
 }
示例#6
0
 public void Handle(AccountUnlockedEvent message)
 {
     this._db.Update(message.AggregateId, message.AccountState, message.Version);
 }