Пример #1
0
 private GetInfoData GetInfo(Currency currency, int timeout)
 {
     try
     {
         var connector = new WalletConnector(currency.WalletHost, currency.WalletPort, currency.WalletUser, currency.WalletPass, timeout);
         return(connector.GetInfo());
     }
     catch (Exception)
     {
         Log.Message(LogLevel.Debug, "[GetTransactions] - Timeout: {0}ms", timeout);
         return(null);
     }
 }
Пример #2
0
 private GetInfoData GetInfo(Currency currency, int timeout)
 {
     try
     {
         var connector = new WalletConnector(currency.WalletHost, currency.WalletPort, currency.WalletUser, currency.WalletPass, timeout);
         var info      = connector.GetInfo();
         var balance   = connector.GetBalance();
         info.Balance = balance;
         return(info);
     }
     catch (Exception ex)
     {
         Log.Exception("An exception occured querying wallet information. Currency: {0}", ex, currency.Symbol);
     }
     return(null);
 }