예제 #1
0
 public AccountingActor(ITranactionsStatsCacheRepository tranactionsStatsCache)
 {
     _tranactionsStatsCache = tranactionsStatsCache;
     Receive <DebitAccount>(x => DoDebitAccountEvent(x));
     Receive <CreditAccount>(x => DoCreditAccountEvent(x));
     Receive <PersistTransaction>(x => DoPersistTransaction(x));
 }
예제 #2
0
 public DebitRequestActor(ITranactionsStatsCacheRepository tranactionsStatsCache)
 {
     _tranactionsStatsCache = tranactionsStatsCache;
     Receive <RequestAccountDebit>(x => DoRequestAccountDebit(x));
 }