/// <summary> /// Construct a new manager with a given strategy /// </summary> /// <param name="strategy"></param> private TransactionManager(ITransactionStrategy strategy) { if (strategy == null) { throw new ArgumentNullException( "strategy", "Strategy must not be null, to use a default call the overload with no arguments"); } Strategy = strategy; TransactionWrapper = new TransactionWrapper(); DoAssertInIdleThread = true; }
internal WarningHandler(TransactionWrapper transactionManager) { tm = transactionManager; }
internal TransactionHandle(TransactionWrapper t) { manager = t; }
public TransactionHandle EnsureInTransaction(TransactionWrapper wrapper, Document document) { TransactionManager.Log("EnsureInTransaction - AUTO STRAT: Starting new Transaction"); return(!wrapper.TransactionActive ? wrapper.StartTransaction(document) : wrapper.Handle); }
/// <summary> /// Construct a new manager with a given strategy /// </summary> /// <param name="strategy"></param> private TransactionManager(ITransactionStrategy strategy) { if (strategy == null) { throw new ArgumentNullException( "strategy", "Strategy must not be null, to use a default call the overload with no arguments"); } Strategy = strategy; TransactionWrapper = new TransactionWrapper(); DoAssertInIdleThread = true; }
internal TransactionHandle(TransactionWrapper t) { manager = t; }
internal WarningHandler(TransactionWrapper transactionManager) { tm = transactionManager; }
public TransactionHandle EnsureInTransaction(TransactionWrapper wrapper, Document document) { TransactionManager.Log("EnsureInTransaction - AUTO STRAT: Starting new Transaction"); return !wrapper.TransactionActive ? wrapper.StartTransaction(document) : wrapper.Handle; }