Quickfix for transactions timing out and not committing when PreparingEnlistment...
authorThong Nguyen <tumtumtum@gmail.com>
Sun, 12 Jan 2014 21:59:39 +0000 (21:59 +0000)
committerThong Nguyen <tumtumtum@gmail.com>
Sun, 12 Jan 2014 22:00:57 +0000 (22:00 +0000)
mcs/class/System.Transactions/System.Transactions/Enlistment.cs
mcs/class/System.Transactions/System.Transactions/PreparingEnlistment.cs

index 3cf7228b322edc4f226bf0b06f16dc8b09d5b454..28342175e8a13694789bcf9f19f61c1ea3ae4f46 100644 (file)
@@ -25,6 +25,12 @@ namespace System.Transactions
                public void Done ()
                {
                        done = true;
+
+                       InternalOnDone();
+               }
+
+               internal virtual void InternalOnDone ()
+               {
                }
        }
 }
index 8995fcb851a74f188ecd67b0d03a6915ad8589f0..eaaa277c422aa69f6dc1429c5a940067a22c885c 100644 (file)
@@ -35,6 +35,11 @@ namespace System.Transactions
                        ForceRollback (null);
                }
 
+               internal override void InternalOnDone ()
+               {
+                       this.Prepared();                        
+               }
+
                [MonoTODO]
                public void ForceRollback (Exception ex)
                {