Example #1
0
        public IComponentConfigurator <TC> Child <TC>(TC childContext, Action <T, TC> childSetup) where TC : class, new()
        {
            var childConfigurator = new ComponentConfigurator <TC>(registration, childContext);

            this.builds.Add(c => childConfigurator.Build());
            return(childConfigurator);
        }
Example #2
0
 public ChildConfigurator(IRegistration registration, ComponentConfigurator <TP> parent, T context) : base(registration, context ?? new T())
 {
     this.parent = parent;
 }