I would like Windsor to be used with this pattern: IChart companyPieChart1 = windsor.Resolve<IChart>(typeof(Company), "someId"); IChart personPieChart2 = windsor.Resolve<IChart>(typeof(Person), "someId2");
Finally, what i would like to do is add many charst to the windows form like this: IChar[] allCompanyCharts = windsor.ResolveAll<IChar>(typeof(Company)); // add all chars to GUI Is this somehow possible? I am struggling with various approaches, but none seems valid. I've tried looking at Windsor sources and understand what is ISubDepenedencyResolver used for, and IHandler, and IDependencyResolver. I understand a traditional way of windsor.Resolve<IChart>(typeof (Company)) works only until i have a single Chart for company. But i need to have as many charts as possible. Of course i can create my own class which would do what i want, but maybe i can reuse Windsor for this purpose somehow? Thank you for any ideas and insights. Darius Damalakas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
