internal static CustomErrorsSection GetSettings(HttpContext context, bool canThrow) { CustomErrorsSection ce = null; RuntimeConfig runtimeConfig = null; if (canThrow) { runtimeConfig = RuntimeConfig.GetConfig(context); if (runtimeConfig != null) { ce = runtimeConfig.CustomErrors; } } else { runtimeConfig = RuntimeConfig.GetLKGConfig(context); if (runtimeConfig != null) { ce = runtimeConfig.CustomErrors; } if (ce == null) { if (_default == null) { _default = new CustomErrorsSection(); } ce = _default; } } return(ce); }
internal static CustomErrorsSection GetSettings(HttpContext context, bool canThrow) { CustomErrorsSection customErrors = null; RuntimeConfig lKGConfig = null; if (canThrow) { lKGConfig = RuntimeConfig.GetConfig(context); if (lKGConfig != null) { customErrors = lKGConfig.CustomErrors; } return customErrors; } lKGConfig = RuntimeConfig.GetLKGConfig(context); if (lKGConfig != null) { customErrors = lKGConfig.CustomErrors; } if (customErrors != null) { return customErrors; } if (_default == null) { _default = new CustomErrorsSection(); } return _default; }