Sharing IoC Containers Between Host and AddIns

Nov 21, 2008 at 2:42 PM
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:
IWindsorContainer container = new WindsorContainer();
How would this service be consumed by the addin, since IHostService is not visible there?