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);
        }
 public DefaultTypeResolver(ComponentRegistry?registry)
 {
     Registry = registry ?? new ComponentRegistry();
 }