Open GoogleCodeExporter opened 9 years ago
The matter is that the behavior for NH should be executed "inside" the behavior
for ambient transaction.
The BeforeInvoke of the ambient-transaction have to be executed before
NhSessionPerCallContextBehavior.BeforeInvoke and the AfterInvoke of the
ambient-transaction have to be executed after
NhSessionPerCallContextBehavior.AfterInvoke.
Everything should work as expected, if you do it this way, without touch
existing code.
Please try it and please let me know the result.
Original comment by fabiomaulo
on 17 Jun 2011 at 12:00
Proper file attached.
Original comment by JS.Futur...@gmail.com
on 17 Jun 2011 at 12:00
Attachments:
By deafult it is done like this. Because attribute of service operation first
is opening TransactionScope and then calls to BeforeInvoke. This without
changes from second file does not work. With my changes it forks properly. You
can write simple test with TransactionScope and Your code and You will see this
is not working like You expect. If You still do not belive me post comment and
I will find some time to write test for it.
Original comment by JS.Futur...@gmail.com
on 20 Jun 2011 at 2:09
Original issue reported on code.google.com by
JS.Futur...@gmail.com
on 17 Jun 2011 at 9:29Attachments: