Drop this one too
[mono.git] / mcs / class / System.Transactions / System.Transactions / Transaction.cs
index 1e8f61d923e05030db6ba35ed238b660f9d7a8d5..dc132fb4a045f13fba28834eb35e578b7e91f1dc 100644 (file)
@@ -21,6 +21,7 @@ namespace System.Transactions
        [Serializable]
        public class Transaction : IDisposable, ISerializable
        {
+               [ThreadStatic]
                static Transaction ambient;
 
                IsolationLevel level;
@@ -105,10 +106,10 @@ namespace System.Transactions
                        return new Transaction (this);
                }
 
-               [MonoTODO]
                public void Dispose ()
                {
-                       throw new NotImplementedException ();
+                       if (TransactionInformation.Status == TransactionStatus.Active)
+                               Rollback();
                }
 
                [MonoTODO]