public override RoleDefinition GetRoleDefinition(string uniqueName) { AdRoleDefinition r = new AdRoleDefinition(); r.Load(Load(uniqueName)); return(new RoleDefinition(r)); }
public override IEnumerator <RoleDefinition> GetRoleDefinitions(IEnumerable <string> uniqueNames, Application application) { using (LdapConnection conn = GetConnection()) { foreach (var item in uniqueNames) { AdRoleDefinition a = new AdRoleDefinition(); a.Load(Load(item, conn)); yield return(new RoleDefinition(a, application)); } } }