예제 #1
0
        public async Task <TransactionResult> CreateTransactionAsync(BankTransaction transaction)
        {
            var result = await _instrumentor.ApplyAsync(
                () => _instrumentedBankRepository.CreateTransactionAsync(transaction),
                nameof(InstrumentedBankRepository));

            return(result);
        }
예제 #2
0
 public async Task AddPaymentAsync(PaymentRecord paymentRecord)
 {
     await _instrumentor.ApplyAsync(
         () => _instrumentedPaymentsRepository.AddPaymentAsync(paymentRecord),
         "InstrumentedAddPaymentRepository");
 }