示例#1
0
 private void Handle(DepositTransactionStartedEvent evnt)
 {
     _id        = evnt.AggregateRootId;
     _accountId = evnt.AccountId;
     _amount    = evnt.Amount;
     _status    = TransactionStatus.Started;
 }
示例#2
0
        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);
        }