public void AddActivity(Activity <TInstance> activity) { ActivityList <TInstance> activityList = _eventActivities.Retrieve(activity.Event, () => new ActivityList <TInstance>()); activityList.Add(activity); }