예제 #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);
        }
예제 #2
0
 private static void EndTransaction(TransactionHandle handle)
 {
     if (handle != null && handle.Status == TransactionStatus.Started)
     {
         handle.CommitTransaction();
     }
 }
예제 #3
0
 public void ForceCloseTransaction(TransactionHandle handle)
 {
     TransactionManager.Log("ForceCloseTransaction - AUTO STRAT: Ending Transaction");
     if (handle != null && handle.Status == TransactionStatus.Started)
     {
         handle.CommitTransaction();
     }
 }
예제 #4
0
 internal TransactionWrapper()
 {
     handler = new WarningHandler(this);
     Handle  = new TransactionHandle(this);
 }
예제 #5
0
 public void TransactionTaskDone(TransactionHandle handle)
 {
     TransactionManager.Log("TransactionTaskDone - AUTO STRAT: Preserving Transaction");
     //Do nothing in automatic, continue using the same transaction.
 }
예제 #6
0
 public void ForceCloseTransaction(TransactionHandle handle)
 {
     TransactionManager.Log("ForceCloseTransaction - DEBUG STRAT: Ending Transaction");
     EndTransaction(handle);
 }
예제 #7
0
 public void TransactionTaskDone(TransactionHandle handle)
 {
     TransactionManager.Log("TransactionTaskDone - DEBUG STRAT: Ending Transaction");
     EndTransaction(handle);
 }
예제 #8
0
 internal TransactionWrapper()
 {
     handler = new WarningHandler(this);
     Handle = new TransactionHandle(this);
 }
예제 #9
0
 public void ForceCloseTransaction(TransactionHandle handle)
 {
     TransactionManager.Log("ForceCloseTransaction - AUTO STRAT: Ending Transaction");
     if (handle != null && handle.Status == TransactionStatus.Started)
         handle.CommitTransaction();
 }
예제 #10
0
 public void TransactionTaskDone(TransactionHandle handle)
 {
     TransactionManager.Log("TransactionTaskDone - AUTO STRAT: Preserving Transaction");
     //Do nothing in automatic, continue using the same transaction.
 }
예제 #11
0
 private static void EndTransaction(TransactionHandle handle)
 {
     if (handle != null && handle.Status == TransactionStatus.Started)
         handle.CommitTransaction();
 }
예제 #12
0
 public void ForceCloseTransaction(TransactionHandle handle)
 {
     TransactionManager.Log("ForceCloseTransaction - DEBUG STRAT: Ending Transaction");
     EndTransaction(handle);
 }
예제 #13
0
 public void TransactionTaskDone(TransactionHandle handle)
 {
     TransactionManager.Log("TransactionTaskDone - DEBUG STRAT: Ending Transaction");
     EndTransaction(handle);
 }
예제 #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);
        }