Exemplo n.º 1
0
 public Task <AsyncTaskResult> HandleAsync(TransferTransactionStartedEvent evnt)
 {
     Console.WriteLine("转账交易已开始,交易ID:{0},源账户:{1},目标账户:{2},转账金额:{3}", evnt.AggregateRootId, evnt.TransactionInfo.SourceAccountId, evnt.TransactionInfo.TargetAccountId, evnt.TransactionInfo.Amount);
     return(Task.FromResult(AsyncTaskResult.Success));
 }
Exemplo n.º 2
0
 public Task HandleAsync(TransferTransactionStartedEvent evnt)
 {
     Console.WriteLine("转账交易已开始,交易ID:{0},源账户:{1},目标账户:{2},转账金额:{3}", evnt.AggregateRootId, evnt.TransactionInfo.SourceAccountId, evnt.TransactionInfo.TargetAccountId, evnt.TransactionInfo.Amount);
     return(Task.CompletedTask);
 }
Exemplo n.º 3
0
 private void Handle(TransferTransactionStartedEvent @event)
 {
     this.State.Status = TransactionStatus.Started;
     this.State.TransferTransactionInfo = @event.TransferTransactionInfo;
 }