Windsore dependency
- by jack
I have a class with contructure like this
public UserRepository(IBlockRepository blockRepos)
{
}
and again, I have another class with the constructure function like this
public BlockRepository(IUserRepository userRepo)
{
}
this cause the Windsor error :
Castle.MicroKernel.Handlers.HandlerException: Can't create component 'UserRepository' as it has dependencies to be satisfied.
UserRepository is waiting for the following dependencies
I don't know how to fix it , please help me. Many thanks