コード例 #1
0
 public void Handle(OverdrawAttemptedEvent e)
 {
     Notifications.Add(new Notification(e.AccountId, string.Format("Overdraw of {0} attempted.", e.Amount)));
 }
コード例 #2
0
ファイル: Account.cs プロジェクト: barissonmez/aspConf-cqrs
 private void UpdateFrom(OverdrawAttemptedEvent @event)
 {
     _numberOfOverdraws++;
 }