Пример #1
0
 internal IEnumerable <EventHandle> GetEventCorrelations(EventHandle handle)
 {
     if (EventCorrelations.ContainsKey(handle))
     {
         return(EventCorrelations[handle]);
     }
     return(new List <EventHandle>());
 }
Пример #2
0
 private void CorrelateEvents(EventHandle first, EventHandle second)
 {
     if (EventCorrelations.ContainsKey(first))
     {
         if (!EventCorrelations[first].Contains(second))
         {
             EventCorrelations[first].Add(second);
         }
     }
     else
     {
         lock (EventCorrelations)
         {
             EventCorrelations.Add(first, new List <EventHandle>()
             {
                 second
             });
         }
     }
 }