0

我有这个层次结构:

IRepository
    |
    |_____IRepository<T>_______________________________________________
              |                                                        |
              |_____Repository<TModelContainer, TEntity>               |
                        |                                              |
                        |_____SpecificRepository<TEntity>          IEntityRepository
                                  |                                    |
                                  |__________EntityRepository__________|

只想拥有以下注册对:

IRepository<T> / Repository<T>
IEntityRepository / EntityRepository

基于http://docs.castleproject.org/Windsor.Registering-components-by-conventions.ashx,我无法理解如何实现这一目标......

4

1 回答 1

1

.WithServiceDefaultInterface()应该做的伎俩

于 2012-11-12T10:26:42.837 回答