Here is what I did after some experimentation:

[Transactional]
public abstract class TransactionalController : AuthenticatedController
{
                [Transaction]
                public override void Process(IEngineContext engineContext, 
IControllerContext context)
                {
                                base.Process(engineContext, context);
                }
}

This ensures that all filters and the controller action execute with in a 
transaction.

From: [email protected] 
[mailto:[email protected]] On Behalf Of Tyler Burd
Sent: Monday, October 05, 2009 2:50 PM
To: [email protected]
Subject: transaction over filters AND controller

Hi all,

I am using the Automatic Transaction Facility together with Monorail.  I 
generally decorate the action methods in my controller with a [Transaction] 
attribute, when necessary, but I have run into an issue:   I have some 
controllers that also have some before and after action Filters.  I would like 
to create a transaction that spans the execution of the filters AND the 
controller action, but I can't seem to figure out how to do this.  Is there an 
easy way to accomplish this?

Thanks!

-tyler burd



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