I've done this in a couple of projects by breaking my fluent configuration into modules, then adding the modules to the container ... a very primitive example of this can be found here (though the implementation I'm using in my work projects has moved on a lot from here).
https://devdefined-tools.googlecode.com/svn/trunk/projects/winforms-mvp/DevDefined.Winforms.Framework/Container/CoreModule.cs https://devdefined-tools.googlecode.com/svn/trunk/projects/winforms-mvp/DevDefined.Winforms.Framework/Container/WinformsContainer.cs I just pass in general configuration parameters etc. as constructor arguments to the individual modules where I want slightly different configuration for different purposes. Some of the other things you can do are things like introducing a facility and seting up a scope when each module is being installed, so the associated component models have some additional metadata pointing to which module registered them (which can be useful once you have a few modules and decorator chains that might span multiple modules, otherwise finding where a component was registered can be a bit tricky. Cheers, - Alex On Tue, Nov 11, 2008 at 10:07 AM, Aaron Alexander <[EMAIL PROTECTED]>wrote: > > I have a question about a usage pattern for Windsor. > > I have several WCF services and a website which share some class > libraries between them. Each service and the website are hosted > independently of each other. For example, Service1 and Service2 both > use Library1. Service2 also uses Library2. I would rather use the > fluent interface to setup the configuration. What is the recommended > way to go about this so that I'm not duplicating the configuration > setup in each service host? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
