public Construktion AddRegistry(Action <BlueprintRegistry> configure) { var registry = new BlueprintRegistry(); configure(registry); _registry.AddRegistry(registry); return(this); }
internal void AddRegistry(BlueprintRegistry registry) { _customBlueprints.AddRange(registry._customBlueprints); foreach (var map in registry._typeMap) { _typeMap[map.Key] = map.Value; } _ctorStrategy = registry._ctorStrategy ?? _ctorStrategy ?? Extensions.GreedyCtor; _defaultBlueprints.Replace(typeof(NonEmptyCtorBlueprint), new NonEmptyCtorBlueprint(_typeMap, _ctorStrategy)); }
public Construktion AddRegistry(BlueprintRegistry registry) { _registry.AddRegistry(registry); return(this); }