예제 #1
0
 /// <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;
 }
예제 #2
0
 internal WarningHandler(TransactionWrapper transactionManager)
 {
     tm = transactionManager;
 }
예제 #3
0
 internal TransactionHandle(TransactionWrapper t)
 {
     manager = t;
 }
예제 #4
0
 public TransactionHandle EnsureInTransaction(TransactionWrapper wrapper, Document document)
 {
     TransactionManager.Log("EnsureInTransaction - AUTO STRAT: Starting new Transaction");
     return(!wrapper.TransactionActive ? wrapper.StartTransaction(document) : wrapper.Handle);
 }
예제 #5
0
 /// <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;
 }
예제 #6
0
 internal TransactionHandle(TransactionWrapper t)
 {
     manager = t;
 }
예제 #7
0
 internal WarningHandler(TransactionWrapper transactionManager)
 {
     tm = transactionManager;
 }
예제 #8
0
 public TransactionHandle EnsureInTransaction(TransactionWrapper wrapper, Document document)
 {
     TransactionManager.Log("EnsureInTransaction - AUTO STRAT: Starting new Transaction");
     return !wrapper.TransactionActive ? wrapper.StartTransaction(document) : wrapper.Handle;
 }