예제 #1
0
        public static bool IsUseTransaction()
        {
            var data = ThreadStaticStorage.GetData(TRAN_FLAG_SLOT);

            if (data == null)
            {
                return(false);
            }

            return((bool)data);
        }
예제 #2
0
 private static void SetCurrentThreadTransactionManager(BaseTransactionManager transactionManager)
 {
     ThreadStaticStorage.SetData(TRANSACTION_MANAGER, transactionManager);
 }
예제 #3
0
 public static void ClearCurrentThreadTransactionManager()
 {
     ThreadStaticStorage.FreeNamedDataSlot(TRANSACTION_MANAGER);
 }
예제 #4
0
 public static BaseTransactionManager GetCurrentThreadTransactionManager()
 {
     return(ThreadStaticStorage.GetData(TRANSACTION_MANAGER) as BaseTransactionManager);
 }
예제 #5
0
 private static void SetTranFlag(bool isTran)
 {
     ThreadStaticStorage.SetData(TRAN_FLAG_SLOT, isTran);
 }