Example #1
0
 private async Task <IEnumerable <TransactionData> > GetWalletDeposits(PaymentMethod paymentMethod)
 {
     try
     {
         var connector = new WalletConnector
                         (
             paymentMethod.Data,
             paymentMethod.Data2,
             paymentMethod.Data3
                         );
         return(await connector.GetDepositsAsync(paymentMethod.Data5));
     }
     catch (Exception ex)
     {
         Log.Exception("Failed to get transactions.", ex);
         return(Enumerable.Empty <TransactionData>());
     }
 }