private void AddIdConstraint(WebHookAttribute attribute, IList <SelectorModel> selectors) { if (attribute.Id != null) { var constraint = new WebHookIdConstraint(attribute.Id); AddConstraint(constraint, selectors); } }
private void AddIdConstraint(WebHookAttribute attribute, SelectorModel selector) { if (attribute.Id != null) { var constraint = new WebHookIdConstraint(attribute.Id); selector.ActionConstraints.Add(constraint); } }
private void AddConstraints(WebHookAttribute attribute, IList <SelectorModel> selectors) { AddConstraint(_existsConstraint, selectors); if (attribute.ReceiverName != null) { var constraint = new WebHookReceiverNameConstraint(attribute.ReceiverName); AddConstraint(constraint, selectors); } if (attribute.Id != null) { var constraint = new WebHookIdConstraint(attribute.Id); AddConstraint(constraint, selectors); } }