Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
 public void AddAllTypesOf(Type pluginType)
 {
     AutoWireupTypesOf.Add(pluginType);
 }
Beispiel #3
0
 public void AddAllTypesOf <TPlugin>()
 {
     AutoWireupTypesOf.Add(typeof(TPlugin));
 }