Esempio n. 1
0
        /// <summary>
        /// Ensure that there is a valid transaction active
        /// </summary>
        public void EnsureInTransaction(Document document)
        {
            AssertInIdleThread();

            //Hand off the behaviour to the strategy
            handle = Strategy.EnsureInTransaction(TransactionWrapper, document);
        }
Esempio n. 2
0
 private static void EndTransaction(TransactionHandle handle)
 {
     if (handle != null && handle.Status == TransactionStatus.Started)
     {
         handle.CommitTransaction();
     }
 }
Esempio n. 3
0
 public void ForceCloseTransaction(TransactionHandle handle)
 {
     TransactionManager.Log("ForceCloseTransaction - AUTO STRAT: Ending Transaction");
     if (handle != null && handle.Status == TransactionStatus.Started)
     {
         handle.CommitTransaction();
     }
 }
Esempio n. 4
0
 internal TransactionWrapper()
 {
     handler = new WarningHandler(this);
     Handle  = new TransactionHandle(this);
 }
Esempio n. 5
0
 public void TransactionTaskDone(TransactionHandle handle)
 {
     TransactionManager.Log("TransactionTaskDone - AUTO STRAT: Preserving Transaction");
     //Do nothing in automatic, continue using the same transaction.
 }
Esempio n. 6
0
 public void ForceCloseTransaction(TransactionHandle handle)
 {
     TransactionManager.Log("ForceCloseTransaction - DEBUG STRAT: Ending Transaction");
     EndTransaction(handle);
 }
Esempio n. 7
0
 public void TransactionTaskDone(TransactionHandle handle)
 {
     TransactionManager.Log("TransactionTaskDone - DEBUG STRAT: Ending Transaction");
     EndTransaction(handle);
 }
Esempio n. 8
0
 internal TransactionWrapper()
 {
     handler = new WarningHandler(this);
     Handle = new TransactionHandle(this);
 }
Esempio n. 9
0
 public void ForceCloseTransaction(TransactionHandle handle)
 {
     TransactionManager.Log("ForceCloseTransaction - AUTO STRAT: Ending Transaction");
     if (handle != null && handle.Status == TransactionStatus.Started)
         handle.CommitTransaction();
 }
Esempio n. 10
0
 public void TransactionTaskDone(TransactionHandle handle)
 {
     TransactionManager.Log("TransactionTaskDone - AUTO STRAT: Preserving Transaction");
     //Do nothing in automatic, continue using the same transaction.
 }
Esempio n. 11
0
 private static void EndTransaction(TransactionHandle handle)
 {
     if (handle != null && handle.Status == TransactionStatus.Started)
         handle.CommitTransaction();
 }
Esempio n. 12
0
 public void ForceCloseTransaction(TransactionHandle handle)
 {
     TransactionManager.Log("ForceCloseTransaction - DEBUG STRAT: Ending Transaction");
     EndTransaction(handle);
 }
Esempio n. 13
0
 public void TransactionTaskDone(TransactionHandle handle)
 {
     TransactionManager.Log("TransactionTaskDone - DEBUG STRAT: Ending Transaction");
     EndTransaction(handle);
 }
Esempio n. 14
0
        /// <summary>
        /// Ensure that there is a valid transaction active
        /// </summary>
        public void EnsureInTransaction(Document document)
        {
            AssertInIdleThread();

            //Hand off the behaviour to the strategy
            handle = Strategy.EnsureInTransaction(TransactionWrapper, document);
        }