internal IEnumerable <EventHandle> GetEventCorrelations(EventHandle handle) { if (EventCorrelations.ContainsKey(handle)) { return(EventCorrelations[handle]); } return(new List <EventHandle>()); }
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 }); } } }