private void RegisterFactoryMethod(IModuleConfiguration configuration, Type componentType, MethodInfo method) { var iface = method.ReturnType; var factory = new FactoryMethodReference(componentType, method); configuration.RegisterFactoryMethod(iface, factory); }
public void RegisterFactoryMethod(Type iface, FactoryMethodReference factoryMethodReference) { var factory = new FactoryMethodComponentFactory(factoryMethodReference, null, false, null); RegisterFactory(iface, factory); }