Esempio n. 1
0
        public ComponentRegistry CreateCopy()
        {
            var registry = new ComponentRegistry();

            foreach (var registration in _registrations.SelectMany(p => p.Value))
            {
                registry.Register(registration.CreateCopy());
            }
            return(registry);
        }
Esempio n. 2
0
 public Container(ComponentRegistry registry)
 {
     Registry = registry ?? new ComponentRegistry();
 }