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