private void Handle(DepositTransactionStartedEvent evnt) { _id = evnt.AggregateRootId; _accountId = evnt.AccountId; _amount = evnt.Amount; _status = TransactionStatus.Started; }
private void Handle(DepositTransactionStartedEvent evnt) { _accountId = evnt.AccountId; _amount = evnt.Amount; Status = TransactionStatus.Started; var participants = new TransactionParticipantInfo[] { new TransactionParticipantInfo(evnt.AccountId, (byte)AggregateRootTypes.BankAccount) }; HandleTransactionStartedEvent((byte)TransactionTypes.DepositTransaction, participants); }