コード例 #1
0
        internal void Init()
        {
            //NamedElementCollection<FwkAuthorizationRule> rules = FwkMembership.GetRules(Membership.Provider.Name);
            //IDictionary<string, IAuthorizationRule> authorizationRules = CreateRulesDictionary(rules);

            Fwk.Security.FwkAuthorizationRuleProvider wFwkAuthorizationRuleProvider = new Fwk.Security.FwkAuthorizationRuleProvider(Membership.Provider.Name);

            ruleProvider = wFwkAuthorizationRuleProvider;

            //Estas reglas podrian venir de un servicio
            rulesComboBox.DataSource = wFwkAuthorizationRuleProvider.GetAuthorizationRules();// FwkMembership.GetRulesList(frmAdmin.Provider.ApplicationName);
        }
コード例 #2
0
        internal void Init()
        {


            //NamedElementCollection<FwkAuthorizationRule> rules = FwkMembership.GetRules(Membership.Provider.Name);
            //IDictionary<string, IAuthorizationRule> authorizationRules = CreateRulesDictionary(rules);

            Fwk.Security.FwkAuthorizationRuleProvider wFwkAuthorizationRuleProvider = new Fwk.Security.FwkAuthorizationRuleProvider(Membership.Provider.Name);

            ruleProvider = wFwkAuthorizationRuleProvider;

            //Estas reglas podrian venir de un servicio
            rulesComboBox.DataSource = wFwkAuthorizationRuleProvider.GetAuthorizationRules();// FwkMembership.GetRulesList(frmAdmin.Provider.ApplicationName);

        }