public Task <AsyncTaskResult> HandleAsync(TransferOutPreparationConfirmedEvent evnt) { return(_commandService.SendAsync(new AddTransactionPreparationCommand( evnt.TransactionInfo.TargetAccountId, evnt.AggregateRootId, TransactionType.TransferTransaction, PreparationType.CreditPreparation, evnt.TransactionInfo.Amount))); }
private void Handle(TransferOutPreparationConfirmedEvent @event) { this.State.TransferOutPreparationConfirmed = true; this.State.TransferOutPreparationConfirmedAt = @event.UTCTimestamp; if (this.State.TransferInPreparationConfirmed) { this.State.Status = TransactionStatus.PreparationCompleted; } }
public async Task HandleAsync(TransferOutPreparationConfirmedEvent evnt) { await _commandService.SendAsync(new AddTransactionPreparationCommand( evnt.TransactionInfo.TargetAccountId, evnt.AggregateRootId, TransactionType.TransferTransaction, PreparationType.CreditPreparation, evnt.TransactionInfo.Amount) { Id = evnt.Id, Items = evnt.Items }); }
public Task <AsyncTaskResult> HandleAsync(TransferOutPreparationConfirmedEvent evnt) { Console.WriteLine("预转出确认成功,交易ID:{0},账户:{1}", evnt.AggregateRootId, evnt.TransactionInfo.SourceAccountId); return(Task.FromResult(AsyncTaskResult.Success)); }
public Task HandleAsync(TransferOutPreparationConfirmedEvent evnt) { _logger.InfoFormat("预转出确认成功,交易ID:{0},账户:{1}", evnt.AggregateRootId, evnt.TransactionInfo.SourceAccountId); return(Task.CompletedTask); }