Beispiel #1
0
        public void AddOrUpdate(Type implement, LifeCycles cycles)
        {
            _resolves.Remove(implement);
            switch (cycles)
            {
            case LifeCycles.Scope:
                break;

            case LifeCycles.Singleton:
                break;

            default:
                _resolves.Add(implement, new TransientFactory(implement, Container));
                break;
            }
        }
Beispiel #2
0
 public Registrations(Type type, IContainer container, LifeCycles cycles)
 {
     Type      = type;
     Container = container;
     _resolves = new Dictionary <Type, IActivatorFactory>();
 }