public void AddRule(OffnetServiceMappingRule sr, PartnerKeyWeb key, ResolveOffnetServiceSet rss)
        {
            var rule = sr as PartnerTagServiceRule;

            if (rule != null)
            {
                var ptsr = rule;
                _partnerTags.Add(rss.GetTagName(ptsr.TagName), key);
                return;
            }
            else if (sr != null)
            {
                //If the "key" is in there already, replace it.
                _serviceRules.RemoveAll(r => r.CompareString().Equals(sr.CompareString()));
                _serviceRules.Add(sr);
            }
        }
Esempio n. 2
0
 public override string CompareString()
 {
     return(string.Format("Condition({0}): {1}", _condition, _rule.CompareString()));
 }