我有构造函数的类是这样的:温莎依赖
public UserRepository(IBlockRepository blockRepos)
{
}
,并再次,我有构造这样的另一个类:
public BlockRepository(IUserRepository userRepo)
{
}
这将导致温莎错误:
Castle.MicroKernel.Handlers.HandlerException: Can't create component 'UserRepository' as it has dependencies to be satisfied. UserRepository is waiting for the following dependencies
我该如何解决这个问题?
你正在使用哪个版本?这不是温莎应该抛出这种情况的例外...... – 2010-03-31 15:34:10