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); } }
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); }
public string GetVersion() { return(AppDomain.Get(AppSetting.Version)); }
internal IEnumerable <string> LoadSpentedUtxoBook() { return(AppDomain.Get <IEnumerable <string> >(AppSetting.UtxoSpentedBook)); }
internal List <string> Get(string hashIndex) { var key = GetKey(AppTables.Utxo_TxLinkItem, hashIndex); return(AppDomain.Get <List <string> >(key) ?? new List <string>()); }
private List <BlackListItem> LoadBlackPeers() { return(AppDomain.Get <List <BlackListItem> >(AppSetting.BlackPeers) ?? new List <BlackListItem>()); }