I would like to use Windsor with a traditional ASP.NET application, but I want to avoid an explicit dependency upon the container in my pages. I want to avoid calls like: IFooService svc = Container.Resolve<IFooService>(). I like the way MonoRail handles this (amongst other things) by having the controller automatically created with its dependencies provided.
I created an HttpModule<http://code.google.com/p/sneal/wiki/AspNetWindsorModule>that does this. Its not perfect, and there are some things I would change, but it works for my own selfish needs as of now. Essentially it scans the page looking for settable properties and then does a "buildup" of dependencies using Windsor. Similar to how the Unity container does it (I think). - Is there a facility or something that already exists that does this within the Castle project? - Is this something that would useful as part of the Castle project or contrib? - Are there any plans to add BuildUp method to the container? I know Ayende mentioned this on blog<http://ayende.com/Blog/archive/2008/02/24/Reviewing-Unity.aspx>some time ago. I welcome any feedback, thoughts, or comments. Cheers, Shawn --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" 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-devel?hl=en -~----------~----~----~----~------~----~------~--~---
