Exemple #1
0
        private void Handle(TransferTransactionStartedEvent evnt)
        {
            _transactionInfo = evnt.TransactionInfo;
            Status           = TransactionStatus.Started;
            var participants = new TransactionParticipantInfo[] {
                new TransactionParticipantInfo(_transactionInfo.SourceAccountId, (byte)AggregateRootTypes.BankAccount),
                new TransactionParticipantInfo(_transactionInfo.TargetAccountId, (byte)AggregateRootTypes.BankAccount),
            };

            HandleTransactionStartedEvent((byte)TransactionTypes.TransferTransaction, participants);
        }
 private void Handle(TransferTransactionStartedEvent evnt)
 {
     _id = evnt.AggregateRootId;
     _transactionInfo = evnt.TransactionInfo;
     _status          = TransactionStatus.Started;
 }
 private void Handle(TransferTransactionStartedEvent evnt)
 {
     _transactionInfo = evnt.TransactionInfo;
     _status          = TransactionStatus.Started;
 }