示例#1
0
        public static bool IsAnyExternal(List <RoutingAddress> routingAddresses, OrganizationId organizationId, ConditionEvaluationMode mode, ref List <string> externalPropertyValues)
        {
            if (routingAddresses == null)
            {
                throw new ArgumentNullException("routingAddresses");
            }
            if (externalPropertyValues == null)
            {
                externalPropertyValues = new List <string>();
            }
            bool result = false;

            foreach (RoutingAddress routingAddress in routingAddresses)
            {
                if (!ADUtils.IsInternal(routingAddress, organizationId))
                {
                    if (mode == ConditionEvaluationMode.Optimized)
                    {
                        return(true);
                    }
                    externalPropertyValues.Add(routingAddress.ToString());
                    result = true;
                }
            }
            return(result);
        }
示例#2
0
 public static bool IsExternal(RoutingAddress routingAddress, OrganizationId organizationId)
 {
     return(!ADUtils.IsInternal(routingAddress, organizationId));
 }