Exemple #1
0
 /// <summary>
 ///     Setup a manager with a specified strategy
 /// </summary>
 public static void SetupManager(ITransactionStrategy strategy)
 {
     Log("Setting up Transaction Manager with Strategy: " + strategy.GetType());
     manager = new TransactionManager(strategy);
 }
Exemple #2
0
 /// <summary>
 ///     Setup a manager with a specified strategy
 /// </summary>
 public static void SetupManager(ITransactionStrategy strategy)
 {
     Log("Setting up Transaction Manager with Strategy: " + strategy.GetType());
     manager = new TransactionManager(strategy);
 }
Exemple #3
0
 /// <summary>
 ///     Setup a manager with a default strategy
 /// </summary>
 public static void SetupManager()
 {
     Log("Setting up Transaction Manager with Default Strategy (Debug)");
     manager = new TransactionManager();
 }
Exemple #4
0
 /// <summary>
 ///     Setup a manager with a default strategy
 /// </summary>
 public static void SetupManager()
 {
     Log("Setting up Transaction Manager with Default Strategy (Debug)");
     manager = new TransactionManager();
 }
Exemple #5
0
 public void TransactionTaskDone(TransactionHandle handle)
 {
     TransactionManager.Log("TransactionTaskDone - AUTO STRAT: Preserving Transaction");
     //Do nothing in automatic, continue using the same transaction.
 }
Exemple #6
0
 public TransactionHandle EnsureInTransaction(TransactionWrapper wrapper, Document document)
 {
     TransactionManager.Log("EnsureInTransaction - AUTO STRAT: Starting new Transaction");
     return(!wrapper.TransactionActive ? wrapper.StartTransaction(document) : wrapper.Handle);
 }
Exemple #7
0
 public void ForceCloseTransaction(TransactionHandle handle)
 {
     TransactionManager.Log("ForceCloseTransaction - DEBUG STRAT: Ending Transaction");
     EndTransaction(handle);
 }
Exemple #8
0
 public void TransactionTaskDone(TransactionHandle handle)
 {
     TransactionManager.Log("TransactionTaskDone - DEBUG STRAT: Ending Transaction");
     EndTransaction(handle);
 }