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; } }
public Registrations(Type type, IContainer container, LifeCycles cycles) { Type = type; Container = container; _resolves = new Dictionary <Type, IActivatorFactory>(); }