public static bool IsUseTransaction() { var data = ThreadStaticStorage.GetData(TRAN_FLAG_SLOT); if (data == null) { return(false); } return((bool)data); }
private static void SetCurrentThreadTransactionManager(BaseTransactionManager transactionManager) { ThreadStaticStorage.SetData(TRANSACTION_MANAGER, transactionManager); }
public static void ClearCurrentThreadTransactionManager() { ThreadStaticStorage.FreeNamedDataSlot(TRANSACTION_MANAGER); }
public static BaseTransactionManager GetCurrentThreadTransactionManager() { return(ThreadStaticStorage.GetData(TRANSACTION_MANAGER) as BaseTransactionManager); }
private static void SetTranFlag(bool isTran) { ThreadStaticStorage.SetData(TRAN_FLAG_SLOT, isTran); }