/// <summary> /// Removes a CASRecord /// </summary> /// <param name="record"></param> public bool Remove(CASRecord record, TACTRepo tactRepo = null) { if (record == null) { return(false); } if (_CKeyEntries.TryGetValue(record.CKey, out var entry)) { _CKeyEntries.Remove(record.CKey); _EKeyEntries.Remove(entry.EKey); // propagate removal if (tactRepo != null) { tactRepo.IndexContainer?.Remove(entry.EKey); tactRepo.DownloadFile?.Remove(entry.EKey); tactRepo.DownloadSizeFile?.Remove(entry.EKey); } return(true); } return(false); }
/// <summary> /// Removes a CASRecord /// </summary> /// <param name="record"></param> public bool Remove(CASRecord record) { if (record == null) { return(false); } if (_CKeyEntries.TryGetValue(record.CKey, out var entry)) { _CKeyEntries.Remove(record.CKey); _EKeyEntries.Remove(record.EKey); return(true); } return(false); }
public void Remove(EncodingContentEntry entry) { _CKeyEntries.Remove(entry.CKey); }