예제 #1
0
        public static bool RetriveRedirectCondition(this ICollection <RedirectConditionDetail> redirectConditionDetails, RedirectDimension redirectDemension, string requestConditionDefinitionCode)
        {
            var requestCondition = FindRedirectConditionDefinition(redirectDemension.RedirectConditionDefinitions, requestConditionDefinitionCode);

            if (requestCondition == null)
            {
                return(false);
            }
            return(redirectConditionDetails.AsParallel().Any(o => o.RedirectConditionDefinitionId == requestCondition.RedirectConditionDefinitionId || FindRedirectConditionDefinition(FindRedirectConditionDefinition(redirectDemension.RedirectConditionDefinitions, o.RedirectConditionDefinitionId.Value).ChildRedirectConditionDefinitions, requestCondition.RedirectConditionDefinitionId) != null));
        }
예제 #2
0
 public static bool RetriveRedirectCondition(this ICollection <RedirectConditionDetail> redirectConditionDetails, RedirectDimension redirectDemension, Guid requestConditionId)
 {
     return(redirectConditionDetails.AsParallel().Any(o => o.RedirectConditionDefinitionId == requestConditionId || FindRedirectConditionDefinition(FindRedirectConditionDefinition(redirectDemension.RedirectConditionDefinitions, o.RedirectConditionDefinitionId.Value).ChildRedirectConditionDefinitions, requestConditionId) != null));
 }