Hi,
I'm trying to invoke this method in spring.net, but i'm having trouble getting the configuration right.
Method:
public void AddRepository<TEntity>(IRepository<TEntity> repository)
where TEntity : IEntity
{
Repositories.Add(repository.GetType().Name, repository);
}
Config:
<object type="Spring.Objects.Factory.Config.MethodInvokingFactoryObject, Spring.Core">
<property name="TargetObject">
<ref local="RepositoryFactory" />
</property>
<property name="TargetMethod" value="AddRepository"/>
<property name="Arguments">
<list>
<ref object="BinaryAssetFileRepository"/>
</list>
</property>
</object>
Is it possible to address generic methods in this way?
Thx,
Bert