Exemplo n.º 1
0
        public bool IsDebuggingEnabled(Func<bool> debugPredicate = null)
        {
            if(forceDebug || debugPredicate.SafeExecute())
            {
                return true;
            }

            if(forceRelease)
            {
                return false;
            }

            if(HttpContext.Current != null && HttpContext.Current.IsDebuggingEnabled)
            {
                return !TrustLevel.IsHighOrUnrestrictedTrust || machineConfigReader.IsNotRetailDeployment;
            }
            return false;
        }
Exemplo n.º 2
0
        public bool IsDebuggingEnabled(Func <bool> debugPredicate = null)
        {
            if (forceDebug || debugPredicate.SafeExecute())
            {
                return(true);
            }

            if (forceRelease)
            {
                return(false);
            }

            if (HttpContext.Current != null && HttpContext.Current.IsDebuggingEnabled)
            {
                return(!TrustLevel.IsHighOrUnrestrictedTrust || machineConfigReader.IsNotRetailDeployment);
            }
            return(false);
        }
 public bool IsDebuggingEnabled(Func <bool> debugPredicate = null)
 {
     return(isDebuggingEnabled || debugPredicate.SafeExecute());
 }
Exemplo n.º 4
0
 public bool IsDebuggingEnabled(Func<bool> debugPredicate = null)
 {
     return (isDebuggingEnabled || debugPredicate.SafeExecute());
 }