Search rules
Here it is described how to search rules base using the Rules.Framework. The Rules Engine exposes a method to search rules:
SearchRulesAsync(SearchArgs<TContentType, TConditionType> searchArgs)
The searchArgs parameter allows you to define the following options:
- [mandatory]
ContentTypefilters by a specific content type. - [mandatory]
DateBeginfilters the rules base for rules with a match starting on this value. - [mandatory]
DateEndfilters the rules base for rules with a match until this value. This value cannot be lesser thanDateBegin- aArgumentExceptionwill be thrown if this validation fails. Conditionsfilters rules by specified conditions. It may be empty.ExcludeRulesWithoutSearchConditionsallows to exclude rules that do not contain search conditions. This option defaults tofalse.
NOTE: if DateBegin equals to DateEnd, rules engine will assume DateEnd as DateBegin plus 1 day.