// Token: 0x060014D0 RID: 5328 RVA: 0x00049EBC File Offset: 0x000480BC protected override object GetConditionValue(BaseTransportRulesEvaluationContext context) { if (!this.areAdressesExpanded) { OwaRulesEvaluationContext owaRulesEvaluationContext = context as OwaRulesEvaluationContext; this.SetValue(ADUtils.GetAllEmailAddresses(base.Value.RawValues, owaRulesEvaluationContext.OrganizationId)); this.areAdressesExpanded = true; } return(base.Value.GetValue(context)); }
public static ShortList <string> GetAllEmailAddresses(ShortList <string> addressesToExpand, OrganizationId organizationId) { if (addressesToExpand == null) { return(null); } ShortList <string> shortList = new ShortList <string>(); foreach (string emailAddress in addressesToExpand) { string[] allEmailAddresses = ADUtils.GetAllEmailAddresses(emailAddress, organizationId); if (allEmailAddresses != null) { foreach (string item in allEmailAddresses) { shortList.Add(item); } } } return(shortList); }