public void Execute(IDependencyRegistry registry) { AutoWireupTypesOf .ForEach(x => RegisterAllTypesOf(x, registry)); AutoWireupClosersOf .Where(x => x.IsOpenGeneric()) .ForEach(x => RegisterClosingTypes(x, registry)); if (ShouldAddSingleImplementations) { RegisterSingleImplementations(registry); } }
public void AddAllTypesOf(Type pluginType) { AutoWireupTypesOf.Add(pluginType); }
public void AddAllTypesOf <TPlugin>() { AutoWireupTypesOf.Add(typeof(TPlugin)); }