コード例 #1
0
 public async Task Handle(AccountTransferCreatedEvent @event)
 {
     await _accountTransferRepository.CreateAccountTransferLog(new AccountTransferLog {
         Timestamp      = DateTimeOffset.UtcNow,
         FromAccount    = @event.FromAccount,
         ToAccount      = @event.ToAccount,
         TransferAmount = @event.TransferAmount
     });
 }
コード例 #2
0
 public Task CreateAccountTransferLog(AccountTransferLog accountTransferLog)
 {
     return(_accountTransferRepository.CreateAccountTransferLog(accountTransferLog));
 }