public async Task HandleAsync(DepositTransactionRolledbackEvent evnt) { if (evnt.TransactionPreparation.TransactionType == (byte)TransactionTypes.TransferTransaction) { await _commandService.SendAsync(new AddTransferRolledbackParticipantCommand { Id = evnt.Id, Items = evnt.Items, AggregateRootId = evnt.TransactionPreparation.InitiatorId, TransactionId = evnt.TransactionPreparation.TransactionId, TransactionType = evnt.TransactionPreparation.TransactionType, ParticipantId = evnt.TransactionPreparation.ParticipantId, ParticipantType = evnt.TransactionPreparation.ParticipantType }); } }
public Task HandleAsync(DepositTransactionRolledbackEvent message) { Console.WriteLine("账户已回滚预支入,交易ID:{0},账户:{1}", message.TransactionPreparation.TransactionId, message.TransactionPreparation.ParticipantId); return(Task.CompletedTask); }