зеркало из https://github.com/mono/mail-archives.git
157 строки
5.0 KiB
HTML
157 строки
5.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 643368] New: Sys.Tx.Transaction.TransactionCompleted event handler ignored
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20643368%5D%20New%3A%0A%20Sys.Tx.Transaction.TransactionCompleted%20event%20handler%20ignored&In-Reply-To=">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="104721.html">
|
|
<LINK REL="Next" HREF="104402.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 643368] New: Sys.Tx.Transaction.TransactionCompleted event handler ignored</H1>
|
|
<B>bugzilla_noreply at novell.com</B>
|
|
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20643368%5D%20New%3A%0A%20Sys.Tx.Transaction.TransactionCompleted%20event%20handler%20ignored&In-Reply-To="
|
|
TITLE="[Mono-bugs] [Bug 643368] New: Sys.Tx.Transaction.TransactionCompleted event handler ignored">bugzilla_noreply at novell.com
|
|
</A><BR>
|
|
<I>Sat Oct 2 18:00:11 EDT 2010</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="104721.html">[Mono-bugs] [Bug 643367] Android.OS.AsyncTask missing abstract doInBackground method
|
|
</A></li>
|
|
<LI>Next message: <A HREF="104402.html">[Mono-bugs] [Bug 643368] Sys.Tx.Transaction.TransactionCompleted event handler ignored
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#104383">[ date ]</a>
|
|
<a href="thread.html#104383">[ thread ]</a>
|
|
<a href="subject.html#104383">[ subject ]</a>
|
|
<a href="author.html#104383">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>
|
|
<A HREF="https://bugzilla.novell.com/show_bug.cgi?id=643368">https://bugzilla.novell.com/show_bug.cgi?id=643368</A>
|
|
|
|
<A HREF="https://bugzilla.novell.com/show_bug.cgi?id=643368#c0">https://bugzilla.novell.com/show_bug.cgi?id=643368#c0</A>
|
|
|
|
|
|
Summary: Sys.Tx.Transaction.TransactionCompleted event handler
|
|
ignored
|
|
Classification: Mono
|
|
Product: Mono: Class Libraries
|
|
Version: SVN
|
|
Platform: All
|
|
OS/Version: All
|
|
Status: NEW
|
|
Severity: Normal
|
|
Priority: P5 - None
|
|
Component: System
|
|
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
|
|
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">pruiz at netway.org</A>
|
|
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
|
|
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;
|
|
ts.Complete();
|
|
}
|
|
|
|
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: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
|
|
------- You are receiving this mail because: -------
|
|
You are the QA contact for the bug.
|
|
You are the assignee for the bug.
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="104721.html">[Mono-bugs] [Bug 643367] Android.OS.AsyncTask missing abstract doInBackground method
|
|
</A></li>
|
|
<LI>Next message: <A HREF="104402.html">[Mono-bugs] [Bug 643368] Sys.Tx.Transaction.TransactionCompleted event handler ignored
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#104383">[ date ]</a>
|
|
<a href="thread.html#104383">[ thread ]</a>
|
|
<a href="subject.html#104383">[ subject ]</a>
|
|
<a href="author.html#104383">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
|
|
mailing list</a><br>
|
|
</body></html>
|