Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 public void AddActivity(InjectionActivity <T> activity)
 {
     _activities.Add(activity);
 }