Exemple #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;
 }
Exemple #3
0
 private void UpdateFrom(AccountUnlockedEvent @event)
 {
     _numberOfOverdraws = 0;
     _isLocked          = false;
 }
 public void Handle(AccountUnlockedEvent <T> evt)
 {
     Process(evt);
 }
Exemple #5
0
 public void Handle(AccountUnlockedEvent e)
 {
     Notifications.Add(new Notification(e.AccountId, string.Format("Account unlocked.")));
 }
Exemple #6
0
 public void Handle(AccountUnlockedEvent message)
 {
     this._db.Update(message.AggregateId, message.AccountState, message.Version);
 }