Hello All,

I have a set of classes that perform tasks decorated with attributes
that designate the textual command a legacy client sends over a
network connection

[Handles("FOOCMD")]
public class FooMessageHandler...

[Handles("BARCMD")]
public class BarMessageHandler...

And I have a class which takes an array of these as constructor bound
dependencies injected into it.  When it receives a command, it
reflects over the array of message handlers to select the correct one.

This was working fine until I started using the Automatic Transaction
Management facility and needed to mark a couple of these message
handlers as Transactional. The proxies generated don't seem to
maintain the HandlesAttribute from the original classes so when it
reflects over them it can't find the correct message handler.

It made me realize there was probably some SRP violations going on
here that my message handlers needed to be transactional, and I'll
probably end up fixing it that way, but I'd still like to know if
there's any way to make the attributes appear on the generated
proxies.  I couldn't find any answers via google.

Thank you,

James Thigpen
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to