예제 #1
0
        public static AccessControlServiceIdentity Create(AccessControlSettings accessControlSettings, string name)
        {
            AccessControlServiceIdentity identity = new AccessControlServiceIdentity(accessControlSettings);

            identity.RegenerateKey();
            identity.Name = name;
            return(identity);
        }
 internal AccessControlRule(AccessControlServiceIdentity identity, Right right, bool inherited, RuleGroup group, Rule rule)
 {
     this.condition = IdentityReference.CreateServiceIdentityReference(identity);
     this.right     = right;
     this.inherited = inherited;
     this.Group     = group;
     this.rule      = rule;
 }
 public AccessControlRule AddRule(AccessControlServiceIdentity identity, Right right)
 {
     return(AddRule(IdentityReference.CreateServiceIdentityReference(identity), right));
 }