Esempio n. 1
0
 public BaseRuleItem(Item innerItem)
     : base(innerItem)
 {
     _BaseUrlRewriteItem           = new BaseUrlRewriteItem(innerItem);
     _ConditionLogicalGroupingItem = new ConditionLogicalGroupingItem(innerItem);
     _BaseMatchItem   = new BaseMatchItem(innerItem);
     _BaseEnabledItem = new BaseEnabledItem(innerItem);
 }
Esempio n. 2
0
        private static void SetConditionLogicalGrouping(ConditionLogicalGroupingItem conditionLogicalGroupingItem, IConditionLogicalGrouping conditionLogicalGrouping)
        {
            var             logicalGroupingItem = conditionLogicalGroupingItem.LogicalGrouping.TargetItem;
            LogicalGrouping?logicalGroupingType = null;

            if (logicalGroupingItem != null)
            {
                var logicalGroupingItemId = logicalGroupingItem.ID.ToString();
                switch (logicalGroupingItemId)
                {
                case Constants.LogicalGroupingType_MatchAll_ItemId:
                    logicalGroupingType = LogicalGrouping.MatchAll;
                    break;

                case Constants.LogicalGroupingType_MatchAny_ItemId:
                    logicalGroupingType = LogicalGrouping.MatchAny;
                    break;

                default:
                    break;
                }
            }
            conditionLogicalGrouping.ConditionLogicalGrouping = logicalGroupingType;
        }