As far as i know, yes. But there may be some problems with copying which i
can't guess now.
You can use IProxyTargetAccessor, which violates SoC
On Tue, Nov 18, 2008 at 9:37 PM, James Thigpen <[EMAIL PROTECTED]>wrote:
>
> So DP simply doesn't support it? I'm ok with that now that I know
> it. It's sort of an unexpected behavior though, IMO.
>
> Thanks!
>
> -jt
>
> On Nov 18, 11:32 am, "Tuna Toksöz" <[EMAIL PROTECTED]> wrote:
> > This is issue is raised usually. Maybe it would be good to implement DP
> to
> > copy the attributes on the target?
> >
> > On Tue, Nov 18, 2008 at 9:26 PM, James Thigpen <
> [EMAIL PROTECTED]>wrote:
> >
> >
> >
> >
> >
> > > 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
> >
> > --
> > Tuna Toksöz
> >
> > Typos included to enhance the readers attention!
> >
>
--
Tuna Toksöz
Typos included to enhance the readers attention!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---