示例#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);
        }