Exemplo n.º 1
0
 /// <summary>
 /// This constructor is used to clone the instance.
 /// </summary>
 /// <param name="source">The type registry to clone the state of.</param>
 protected TypeRegistry(TypeRegistry source)
 {
     ArgumentValidator.EnsureArgumentIs(source, GetType(), "source");
     actions    = new List <TypeRegistration>(source.actions);
     actionSet  = new HashSet <TypeRegistration>(source.actionSet);
     types      = new List <Type>(source.types);
     typeSet    = new HashSet <Type>(source.typeSet);
     processor  = source.processor;
     assemblies = new Set <Assembly>(source.assemblies);
 }
Exemplo n.º 2
0
        // Constructors

        /// <summary>
        /// Initializes new instance of this type.
        /// </summary>
        /// <param name="processor">The registry action processor.</param>
        public TypeRegistry(ITypeRegistrationProcessor processor)
        {
            ArgumentValidator.EnsureArgumentNotNull(processor, "processor");
            this.processor = processor;
        }
Exemplo n.º 3
0
        // Constructors

        /// <summary>
        /// Initializes a new instance of this class.
        /// </summary>
        /// <param name="processor">The registry action processor.</param>
        public DomainTypeRegistry(ITypeRegistrationProcessor processor)
            : base(processor)
        {
        }