|
Hi group, What I'd like to do is to load resources per controller type according to some convention. Let's say we have a controller called UsersController in the Admin area, I want to automatically load the resource "resources.Controllers.Admin.Users". I know that there's the ResourceAttribute, so I could put a [Resource("someName", "resources.Controllers.Admin.Users")] to have the resources loaded, but as I said I would prefer convention over configuration. Probably I should hook into the descriptor collection process, but I'm not sure where. My idea would have been to add my own attribute that implements IResourceDescriptorBuilder. The problem is, that I can't determine the controller type to which the attribute has been applied, so I'm a bit stuck here. What would you suggest? Regards, Andre --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
- Monorail: loading resources per controller type Andre Loker
