German Thanks, but I don't think it applies.
The issue as I see it is that as the web app is multi-threaded I can't put anything into the container that I don't want all threads to see and I also don't want Windsor to be responsible for the creation of the views as they already exist. What I want is something along the lines of.. container.Resolve<CustomerEditPresenter>(controller.ViewCollection) where the container knows how to ask the passed value if it has any dependencies that it might be interested in. I read the discusssion about child containers, but again I don't think it it applies as the behaviour I want is that the parent container resolves the main components but asks the child container to supply them if it can't On Apr 7, 4:22 pm, Germán Schuager <[email protected]> wrote: > I don't if this is what you are looking for, but maybe it > helps:http://blog.schuager.com/2008/11/custom-windsor-lifestyle.html > > > > On Tue, Apr 7, 2009 at 12:18 PM, Paul Hatcher <[email protected]> wrote: > > > I have an hand-rolled ASP.NET MVP framework and I would like to use > > Windsor to create the presenters which take a combination of views > > (user controls) and other services (repository objects, etc). > > > I've wrappered my container in a static class that is constructed > > during Application_Start and on the pages I have a controller class > > that all of the views are registered against, my question is how to > > pass sufficient context to the container so that it knows where to > > obtain the views from? > > > Paul- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
