public void Clear() { lock (lockObj) { PaymentFilters.Clear(); Payment_Mem.Clear(); var paymentKeys = PaymentBook.Select(x => GetKey(AppTables.TradeRecord, x)); AppDomain.Del(paymentKeys); PaymentBook.Clear(); } }
public void Del(IEnumerable <string> keys) { lock (lockObj) { PaymentFilters.RemoveAll(x => keys.Contains(x.ToString())); Payment_Mem.RemoveAll(x => keys.Contains(x.ToString())); var payments = PaymentBook.Where(x => keys.Contains(x.ToString())).ToList(); var paymentKeys = payments.Select(x => GetKey(AppTables.TradeRecord, x)); AppDomain.Del(paymentKeys); PaymentBook.RemoveAll(x => payments.Contains(x)); } }
public void Del(string hashIndex) { var key = GetKey(AppTables.Utxo_TxLinkItem, hashIndex); AppDomain.Del(key); }