public void AddActivity(InjectionActivity <T> activity) { if (_activity == null) { _activity = activity; return; } var activities = _activity as CompositeInjectionActivity <T>; if (activities == null) { activities = new CompositeInjectionActivity <T>(); activities.AddActivity(_activity); } activities.AddActivity(activity); _activity = activities; }
public void AddActivity(InjectionActivity <T> activity) { _activities.Add(activity); }