예제 #1
0
        /// <summary>
        /// Checks the configuration elements and redirects to an error page if something is missing or wrong.
        /// </summary>
        private void CheckConfiguration()
        {
            if (Validated)
            {
                return;
            }

            Validated = BindingUtility.ValidateConfiguration(ConfigurationFactory.Instance.Configuration);
        }
        /// <summary>
        /// Checks the configuration elements and redirects to an error page if something is missing or wrong.
        /// </summary>
        private void CheckConfiguration()
        {
            if (Validated)
            {
                return;
            }

            Validated = BindingUtility.ValidateConfiguration();
        }
예제 #3
0
        /// <summary>
        /// Checks the configuration elements and redirects to an error page if something is missing or wrong.
        /// </summary>
        /// <param name="ctx"></param>
        private void CheckConfiguration(HttpContext ctx)
        {
            if (validated)
            {
                return;
            }

            string errorMessage;

            validated = BindingUtility.ValidateConfiguration(out errorMessage);
            if (!validated)
            {
                HandleError(ctx, errorMessage);
            }
        }