[Mono-bugs] [Bug 643368] New: Sys.Tx.Transaction.TransactionCompleted event handler ignored

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Oct 2 18:00:11 EDT 2010



           Summary: Sys.Tx.Transaction.TransactionCompleted event handler
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: pruiz at netway.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3

TransactionComplete event handler wont get fired, not matter if transaction
get's started manually or by using a TransactionScope, which is inconsistent
with MS .Net implementation.

Here is a sample code demostrating the issue:

using System;
using System.Transactions;

class MainClass {
        static void Main()
                bool called = false;
                using (var ts = new TransactionScope())
                        var tr = Transaction.Current;
                        tr.TransactionCompleted += (s, e) => called = true;

                Console.WriteLine("Called = " + called);

When run on mono output is 'Called = false'.
When run on ms.net output is 'Called = true'.

Reproducible: Always

Steps to Reproduce:
1. Compile sample code.
2. Run
3. See failing results (Called = false)
Actual Results:  
Event handler not fired

Expected Results:  
Event handler fired successfully.

Tested against git's master and 2-8 branches.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list