public void AddEventToTrace(string traceId, LogEvent eve) { var searchResult = Traces.Find(x => x.Id == traceId); if (searchResult != null) { searchResult.Events.Add(eve); } else { throw new ArgumentException("No such trace"); } }
public void Add(LogEvent e) { Events.Add(e); EventAdded?.Invoke(); }