Exemplo n.º 1
0
 private List <string> GetPaymentBookInDb()
 {
     if (PaymentBook != null && PaymentBook.Any())
     {
         return(PaymentFilters.Select(x => x.ToString()).ToList());
     }
     else
     {
         var payments = AppDomain.Get <List <string> >(AppSetting.PaymentBook) ?? new List <string>();
         return(payments);
     }
 }
Exemplo n.º 2
0
        public List <PaymentCache> GetPayments(IEnumerable <string> keys)
        {
            List <PaymentCache> result = new List <PaymentCache>();

            result.AddRange(Payment_Mem.Where(x => keys.Contains(x.ToString())));
            var pkeys = keys.Select(x => GetKey(AppTables.TradeRecord, x));

            var payments = AppDomain.Get <PaymentCache>(pkeys);

            if (payments != null)
            {
                result.AddRange(payments);
            }
            return(result);
        }
Exemplo n.º 3
0
 public string GetVersion()
 {
     return(AppDomain.Get(AppSetting.Version));
 }
Exemplo n.º 4
0
 internal IEnumerable <string> LoadSpentedUtxoBook()
 {
     return(AppDomain.Get <IEnumerable <string> >(AppSetting.UtxoSpentedBook));
 }
Exemplo n.º 5
0
        internal List <string> Get(string hashIndex)
        {
            var key = GetKey(AppTables.Utxo_TxLinkItem, hashIndex);

            return(AppDomain.Get <List <string> >(key) ?? new List <string>());
        }
Exemplo n.º 6
0
 private List <BlackListItem> LoadBlackPeers()
 {
     return(AppDomain.Get <List <BlackListItem> >(AppSetting.BlackPeers) ?? new List <BlackListItem>());
 }