I have this hierarchy:
IRepository
|
|_____IRepository<T>_______________________________________________
| |
|_____Repository<TModelContainer, TEntity> |
| |
|_____SpecificRepository<TEntity> IEntityRepository
| |
|__________EntityRepository__________|
And I would like to have only the following registration pairs:
IRepository<T> / Repository<T>
IEntityRepository / EntityRepository
Based on http://docs.castleproject.org/Windsor.Registering-components-by-conventions.ashx, I cannot understand how to achieve that…
.WithServiceDefaultInterface()should do the trick