Hi Henrik,

Yeah ok I'll give it a go. I'm really busy at work at the moment so it
might not be immediately.

If anyone comes up with a better way of marking the transaction as
read only then please shout - otherwise I'll go with passing a string
to the custom context. The bit flag suggestion was a (bad)joke, just
in case anyone didn't realise :) . My choice would still be have a
boolean property on the transaction attribute, but of course this has
been rejected.

regards,
Jordan.


On Aug 13, 1:33 pm, "Henrik Feldt" <[email protected]> wrote:
> Hi Jordan,
>
> What if you create a sample with a readonly transaction by modifying the
> transactions-source code to incorporate that feature in any way that you
> feel like; then I can merge and refactor it towards something better?
>
> Cheers,
> Henrik
>
>
>
>
>
>
>
> -----Original Message-----
> From: [email protected]
>
> [mailto:[email protected]] On Behalf Of Jordan
> Sent: den 12 augusti 2011 16:56
> To: Castle Project Development List
> Subject: Re: TransactionAttribute.CustomContext
>
> Sorry, I made a typo:
>
>  [Transaction(CustomContext = "SomeClass.ReadOnly ")] Should have been
> [Transaction(CustomContext = SomeClass.ReadOnly)]
>
> > I would try a more segregated approach. Maybe a method to return some
> > config model, or a separated class. My concern is that the key pair
> > string can easily clog the marked method readability.
>
> Hi Henry,
>
> Yes - passing strings around that like probably isn't ideal, I agree.
> Hence my suggestion for a constant. Another approach could be an old school
> style C bit flag.... *ducks*  :)
>
> Jordan.
>
> --
> 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 
> athttp://groups.google.com/group/castle-project-devel?hl=en.

-- 
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.

Reply via email to