private void RegisterFactoryMethod(IModuleConfiguration configuration, Type componentType, MethodInfo method)
        {
            var iface = method.ReturnType;
            var factory = new FactoryMethodReference(componentType, method);

            configuration.RegisterFactoryMethod(iface, factory);
        }
 public FactoryMethodComponentFactory(FactoryMethodReference factoryMethodReference, string implementationName, bool isPrimary, Type[] primaryForTypes)
     : base(implementationName, isPrimary, primaryForTypes)
 {
     _factoryMethodReference = factoryMethodReference;
 }
Ejemplo n.º 3
0
 public FactoryMethodComponentFactory(FactoryMethodReference factoryMethodReference, string implementationName, bool isPrimary, Type[] primaryForTypes)
     : base(implementationName, isPrimary, primaryForTypes)
 {
     _factoryMethodReference = factoryMethodReference;
 }