Tiraggo.Interfaces.tgTransactionScope.GetCurrentTransactionScopeOption C# (CSharp) Method

GetCurrentTransactionScopeOption() public static method

This can be used to get the tgTransactionScopeOption from the current tgTransactionScope (remember transactions can be nested). If there is no on-going transaction then tgTransactionScopeOption.None is returned.
public static GetCurrentTransactionScopeOption ( ) : tgTransactionScopeOption
return tgTransactionScopeOption
        public static tgTransactionScopeOption GetCurrentTransactionScopeOption()
        {
            tgTransactionScope currentTx = GetCurrentTx();

            if (currentTx == null)
                return tgTransactionScopeOption.None;
            else
                return currentTx.option;
        }