I have an application which uses Castle Windsor to register services that other modules of the application consume.
This application should now be extended with addins and I would like to share this container between the addins and the host, but I am a bit lost with all the views, adapters and interfaces.
For example, assume there is a contract IServiceContract and corresponding views IAddinService and IHostService. If the host registers a service like:
How would this service be consumed by the addin, since IHostService is not visible there?
IWindsorContainer container = new WindsorContainer();