Exemple #1
0
 public void Merge(PvpAuthorization authorization)
 {
     foreach (PvpRole role in authorization.Roles)
     {
         Merge(role);
     }
 }
Exemple #2
0
        public static PvpAuthorization Parse(string authorizationString)
        {
            string[]       roleStrings = authorizationString.Split(";".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
            List <PvpRole> roles       = new List <PvpRole>();

            foreach (string roleString in roleStrings)
            {
                roles.Add(PvpRole.Parse(roleString));
            }

            PvpAuthorization auth = new PvpAuthorization();

            auth._roles = roles;

            return(auth);
        }