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); }
public ChildConfigurator(IRegistration registration, ComponentConfigurator <TP> parent, T context) : base(registration, context ?? new T()) { this.parent = parent; }