protected override void Reset(ConfigurationElement parentElement)
        {
            AuthorizationRule parentProviders = parentElement as AuthorizationRule;

            if (parentProviders != null)
            {
                parentProviders.UpdateUsersRolesVerbs();
            }
            base.Reset(parentElement);
            EvaluateData();
        }
示例#2
0
        protected override void Reset(ConfigurationElement parentElement)
        {
            AuthorizationRule rule = parentElement as AuthorizationRule;

            if (rule != null)
            {
                rule.UpdateUsersRolesVerbs();
            }
            base.Reset(parentElement);
            this.EvaluateData();
        }
示例#3
0
        protected override void Unmerge(ConfigurationElement sourceElement, ConfigurationElement parentElement, ConfigurationSaveMode saveMode)
        {
            AuthorizationRule rule  = parentElement as AuthorizationRule;
            AuthorizationRule rule2 = sourceElement as AuthorizationRule;

            if (rule != null)
            {
                rule.UpdateUsersRolesVerbs();
            }
            if (rule2 != null)
            {
                rule2.UpdateUsersRolesVerbs();
            }
            base.Unmerge(sourceElement, parentElement, saveMode);
        }
        protected override void Unmerge(ConfigurationElement sourceElement,
                                        ConfigurationElement parentElement,
                                        ConfigurationSaveMode saveMode)
        {
            AuthorizationRule parentProviders = parentElement as AuthorizationRule;
            AuthorizationRule sourceProviders = sourceElement as AuthorizationRule;

            if (parentProviders != null)
            {
                parentProviders.UpdateUsersRolesVerbs();
            }
            if (sourceProviders != null)
            {
                sourceProviders.UpdateUsersRolesVerbs();
            }
            base.Unmerge(sourceElement, parentElement, saveMode);
        }