public virtual IRecipient[] GetGroupEntries(IRecipientsGroup group) { if (group == null) { throw new ArgumentNullException("group"); } var result = new List <IRecipient>(); var groupID = Guid.Empty; if (TryParseGuid(group.ID, out groupID)) { var coreGroup = CoreContext.GroupManager.GetGroupInfo(groupID); if (coreGroup.ID != Constants.LostGroupInfo.ID) { foreach (var gr in coreGroup.Descendants) { result.Add(new RecipientsGroup(gr.ID.ToString(), gr.Name)); } var users = CoreContext.UserManager.GetUsersByGroup(coreGroup.ID); Array.ForEach(users, u => result.Add(new DirectRecipient(u.ID.ToString(), u.ToString()))); } } return(result.ToArray()); }
public virtual IRecipient[] GetGroupEntries(IRecipientsGroup group) { if (group == null) throw new ArgumentNullException("group"); var result = new List<IRecipient>(); var groupID = Guid.Empty; if (TryParseGuid(group.ID, out groupID)) { var coreGroup = CoreContext.GroupManager.GetGroupInfo(groupID); if (coreGroup.ID != Constants.LostGroupInfo.ID) { var users = CoreContext.UserManager.GetUsersByGroup(coreGroup.ID); Array.ForEach(users, u => result.Add(new DirectRecipient(u.ID.ToString(), u.ToString()))); } } return result.ToArray(); }
public IRecipient[] GetGroupEntries(IRecipientsGroup group, string objectID) { return GetGroupEntries(group); }
public IRecipient[] GetGroupEntries(IRecipientsGroup group, string objectID) { return(GetGroupEntries(group)); }