public void AddUser(TopicDescription topic, QueueUser user)
 {
     topic.Authorization.Add(new AllowRule(_nameSpace, "nameidentifier",
                                           user.UserName,
                                           user.GetAccessRights()));
     UpdateTopic(topic);
 }
 public void AddUser(QueueDescription queue, QueueUser user)
 {
     queue.Authorization.Add(new AllowRule(_nameSpace, "nameidentifier",
                                           user.UserName,
                                           user.GetAccessRights()));
     UpdateQueue(queue);
 }
 public void DeleteUser(TopicDescription topic, QueueUser user)
 {
     topic.Authorization.Remove(topic.Authorization.Single(a => a.ClaimValue.StartsWith(user.UserName)));
     UpdateTopic(topic);
 }
 public void DeleteUser(QueueDescription queue, QueueUser user)
 {
     queue.Authorization.Remove(queue.Authorization.Single(a => a.ClaimValue.StartsWith(user.UserName)));
     UpdateQueue(queue);
 }