我有構造函數的類是這樣的:溫莎依賴
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