Contrib Version 0.2.0 with Castle Interceptors versions of Log, Transaction and UnitOfWork Attributes Available for Comment

2 views
Skip to first unread message

Tom Cabanski

unread,
Oct 18, 2009, 11:33:05 AM10/18/09
to SharpArch
Based on feedback from the group, I have gone ahead and implemented Log, Transaction and UnitOfWork support using pure Castle.   I have pushed the source up to the GitHub repo at http://github.com/codai/Sharp-Architecture-Contrib so those that are interested can get the source, compile it and give it a try.  There are also downloads availble for the source and binaries.  Until the next quarterly release of SharpArch is ready, you will also need to download the patched SharpArch binaries from the Contrib downloads page.  See my blog post at http://tomcabanski.spaces.live.com/blog/cns!E0D3617496209F45!220.entry for more information on the available functionality and how to use it.
 
This is very much a work in a process.  I am very interested in feedback and suggestions for improving the implementation.  Contributions would also be welcome.
---------------------------------------------------------
Tom Cabanski

curlyfro

unread,
Oct 19, 2009, 9:02:20 AM10/19/09
to S#arp Architecture
Thanks Tom

On Oct 18, 11:33 am, Tom Cabanski <t...@cabanski.com> wrote:
> Based on feedback from the group, I have gone ahead and implemented Log,
> Transaction and UnitOfWork support using pure Castle.   I have pushed the
> source up to the GitHub repo athttp://github.com/codai/Sharp-Architecture-Contribso those that are

Kyle Baley

unread,
Oct 19, 2009, 3:48:15 PM10/19/09
to sharp-arc...@googlegroups.com
I'm interested in seeing how the Transaction and UnitOfWork pieces work. Eager to see if they help remove a lot of the DbContext code that is necessary to rollback transactions in the controllers/service layer.
--
Kyle Baley
ky...@baley.org
403.770.9563
http://kyle.baley.org

Tom Cabanski

unread,
Oct 19, 2009, 4:16:47 PM10/19/09
to sharp-arc...@googlegroups.com
Kyle,
 
You should not use UnitOfWork in ASP.NET MVC apps as SharpArch already manages the session per request.  However, the transaction attribute should be just perfect.  It will rollback itself on an exception or you can force it to rollback by throwing an AbortTransactionException.  It works properly when nested too (e.g. attribute controller method can call on one or more attributed application service methods).
 
UnitOfWork is mostly for Windows services and Windows forms as it is transaction + session management.
 
I'll be interested to hear how it goes.
---------------------------------------------------------
Tom Cabanski


Reply all
Reply to author
Forward
0 new messages