/// <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); }
/// <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); }
/// <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(); }
/// <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(); }
public void TransactionTaskDone(TransactionHandle handle) { TransactionManager.Log("TransactionTaskDone - AUTO STRAT: Preserving Transaction"); //Do nothing in automatic, continue using the same transaction. }
public TransactionHandle EnsureInTransaction(TransactionWrapper wrapper, Document document) { TransactionManager.Log("EnsureInTransaction - AUTO STRAT: Starting new Transaction"); return(!wrapper.TransactionActive ? wrapper.StartTransaction(document) : wrapper.Handle); }
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); }