private void AddToActualEntries(HistoryEntryId entryId) { List<string> moduleNames; if (!_actualEntries.TryGetValue(entryId.Timestamp, out moduleNames)) { moduleNames = new List<string>(); _actualEntries.Add(entryId.Timestamp, moduleNames); } moduleNames.Add(entryId.ModuleName); }
private void RemoveFromActualEntries(HistoryEntryId entryId) { List<string> moduleNames; if (_actualEntries.TryGetValue(entryId.Timestamp, out moduleNames)) { moduleNames.Remove(entryId.ModuleName); if (moduleNames.Count == 0) { _actualEntries.Remove(entryId.Timestamp); } } }
internal void LoadEntry(long timestamp, string moduleName) { HistoryEntryId entryId = new HistoryEntryId(timestamp, moduleName); AddToActualEntries(entryId); }