Exemplo n.º 1
0
        private void WriteResult(ADObjectId member, DelegateRoleType role, string scope)
        {
            string       text           = Strings.OrganizationWide.ToString();
            DelegateUser sendToPipeline = new DelegateUser(member.ToString(), role, (role != DelegateRoleType.ServerAdmin) ? text : scope);

            base.WriteObject(sendToPipeline);
        }
Exemplo n.º 2
0
 public DelegateUser(string id, DelegateRoleType roleType, string scope)
 {
     this.id       = id;
     this.scope    = scope;
     this.roleType = roleType;
     this.identity = new DelegateUserId(id);
 }