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