Windsor dependency
        Posted  
        
            by jack
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by jack
        
        
        
        Published on 2010-03-31T14:04:25Z
        Indexed on 
            2010/03/31
            17:43 UTC
        
        
        Read the original article
        Hit count: 539
        
I have a class with constructor like this:
public UserRepository(IBlockRepository blockRepos)
{
}
and again, I have another class with the constructor like this:
public BlockRepository(IUserRepository userRepo)
{
}
this causes 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
How do I fix this?
© Stack Overflow or respective owner