Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
         }
     }
 }
Ejemplo n.º 3
0
 internal void LoadEntry(long timestamp, string moduleName)
 {
     HistoryEntryId entryId = new HistoryEntryId(timestamp, moduleName);
     AddToActualEntries(entryId);
 }